←Select platform

Effect Property

Summary

Current drop effect.

Syntax
C#
C++/CLI
public DragDropEffects Effect { get; set; } 
public:  
   property System::Windows::Forms::DragDropEffects^ Effect 
   { 
      System::Windows::Forms::DragDropEffects^ get() 
      void set(System::Windows::Forms::DragDropEffects^ value) 
   } 

Property Value

The current drop effect. Default value is None.

Remarks

Change the value of this property to update UI (mouse cursor). Set it to None to disable dropping.

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

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.