public event EventHandler<AnnEditDesignerEventArgs> Edit
add_Edit(function(sender, e)) remove_Edit(function(sender, e))
The event handler receives an argument of type AnnEditDesignerEventArgs containing data related to this event. The following AnnEditDesignerEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether the edit operation should be canceled. |
MoveThumbIndex | Gets the index of the thumb (control point) being moved. |
Object | Gets the Leadtools.Annotations.Core.AnnObject that is being edited. |
Operation | Gets the type of the current edit operation. |
OperationStatus | Gets the status of the current edit operation. |
When an object is being edited, the automation object will hook the object edit designer's AnnEditDesigner.Edit to this event. Therefore, instead of hooking and unhooking to the various designers edit events, you can simply subscribe to this event once.
This example will show how to track when an object is edited.
Start with the AnnAutomationManager example, remove all the code inside the example function (search for the // TODO: add example code here comment) and insert the following code:
Click the example button. Now whenever you move or resize an object, you will get the message.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2