←Select platform

DragDrop Event

Summary
Occurs when an AnnObject is being dragged out of a container.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public event EventHandler<AnnDragDropEventArgs> DragDrop 
- (void)automation:(LTAnnAutomation *)automation dragDrop:(LTAnnDragDropEventArgs *)args; 
public void addDragDropListener (AnnDragDropListener listener) 
public void removeDragDropListener (AnnDragDropListener listener) 
public:  
   event EventHandler<AnnDragDropEventArgs^>^ DragDrop 
def DragDrop(sender,e): # sender: AnnAutomation e: AnnDragDropEventArgs 
Event Data

The event handler receives an argument of type AnnDragDropEventArgs containing data related to this event. The following AnnDragDropEventArgs properties provide information specific to this event.

PropertyDescription
Allowed Gets or sets a value that indicates whether the current operation is allowed.
Remarks

This event occurs during editing of an object when multiple containers are used and an object is being dragged out of one container. The default behavior will move the object from the source to the target container (if any). Override this method to provide custom behavior if required.

This event will trigger only if the value of EnableDragDrop is true.

EnablePartialDrop controls the behavior when an object is dragged then dropped while its boundary is not completely enclosed in any container.

Requirements

Target Platforms

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

Leadtools.Annotations.Automation Assembly

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