Current target image viewer for this drop operation.
public ImageViewer TargetImageViewer { get; }
public:
property ImageViewer^ TargetImageViewer
{
ImageViewer^ get()
}
The current target image viewer for this drop operation.
This changes as the user drags on the application if more than one image viewer exists. It can be null if the object is not currently over an image viewer object and the same value as SourceImageViewer if the item is being dragged over the same viewer (if supported).
using Leadtools;
using Leadtools.Controls;
using Leadtools.Codecs;
using Leadtools.Drawing;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Color;
public void ImageViewerDragInteractiveModeExample()
{
_imageViewer.ItemDragDrop += (sender, e) =>
{
_imageViewer.InteractiveModes.BeginUpdate();
e.Effect = DragDropEffects.Copy | DragDropEffects.Move | DragDropEffects.Link;
Debug.WriteLine("Format: {0}, Location: {1}, NativeEvent: {2}, Operation: {3}, SourceImageViewer: {4}, SourceItem: {5}, TargetImageViewer: {6}, TargetItem: {7}",
e.Format, e.Location, e.NativeEvent, e.Operation, e.SourceImageViewer, e.SourceItem, e.TargetImageViewer, e.TargetItem);
_imageViewer.InteractiveModes.EndUpdate();
e.Abort = true;
};
_imageViewer.InteractiveModes.BeginUpdate();
ImageViewerDragInteractiveMode dragMode = new ImageViewerDragInteractiveMode();
dragMode.Format = RasterImage.RasterImageDataFormat;
dragMode.TargetImageViewerMode = ImageViewerDragTargetMode.All;
dragMode.AllowedEffects = DragDropEffects.Copy | DragDropEffects.Move | DragDropEffects.Link;
_imageViewer.InteractiveModes.Add(dragMode);
_imageViewer.InteractiveModes.EndUpdate();
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document