←Select platform

DragDrop Event

Summary

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

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public event EventHandler<AnnDragDropEventArgs> DragDrop 
Public Event DragDrop As EventHandler(Of AnnDragDropEventArgs) 
public event EventHandler<AnnDragDropEventArgs> DragDrop 
-(void) automation:(LTAnnAutomation*) automation 
      dragWithArgs:(LTAnnDragDropEventArgs*) e; 
             
public void addDragDropListener (AnnDragDropListener listener) 
public void removeDragDropListener (AnnDragDropListener listener) 
             
add_DragDrop(function(sender, e)) 
remove_DragDrop(function(sender, e)) 
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.
AnnObject Gets the AnnObject that is being dragged.
CanDrop Gets a value that indicates whether the object(s) being dragged can be dropped on the target container.
Operation Gets the current drag and drop operation.
OperationContainer Gets the current container for this drag and drop operation.
SourceContainer Gets the source annotation container.
TargetContainer Gets the source annotation container.
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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Automation Assembly