←Select platform

DragDrop Event

Summary

Occurs when an AnnObject is being dragged out of a container.

Syntax
C#
VB
Objective-C
C++
Java
public event EventHandler<AnnDragDropEventArgs> DragDrop 
Public Event DragDrop As EventHandler(Of AnnDragDropEventArgs) 
-(void) automation:(LTAnnAutomation*) automation 
      dragWithArgs:(LTAnnDragDropEventArgs*) e; 
public void addDragDropListener (AnnDragDropListener listener) 
public void removeDragDropListener (AnnDragDropListener listener) 
public:  
   event EventHandler<AnnDragDropEventArgs^>^ DragDrop 

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 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Automation Assembly