←Select platform

ImageViewerDragTargetMode Enumeration

Summary

Specifies the drag target allowed by ImageViewerDragInteractiveMode.

Syntax
C#
C++/CLI
public enum ImageViewerDragTargetMode 
public enum class ImageViewerDragTargetMode sealed 
Members

0

All

(0) Drag target can be the same or any other ImageViewer in the application.

1

Same

(1) Drag target can only be the same ImageViewer that initiated the operation only and not any other ImageViewer instances in the application.

2

Others

(2) Drag target can be any other ImageViewer instance in the application but not the ImageViewer that initiated the operation.

Remarks

ImageViewerDragInteractiveMode is used to trigger drag operations from a source image viewer. The target of the drag can be limited using this mode.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
 
_imageViewer.InteractiveModes.BeginUpdate(); 
ImageViewerDragInteractiveMode dragMode = new ImageViewerDragInteractiveMode(); 
dragMode.AllowedEffects = DragDropEffects.Copy | DragDropEffects.Move | DragDropEffects.Link; 
_imageViewer.InteractiveModes.Add(dragMode); 
_imageViewer.InteractiveModes.EndUpdate(); 
Requirements

Target Platforms

See Also

Reference

Leadtools.Controls Namespace

Help Version 22.0.2023.1.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.