(Leadtools.Annotations.Automation)

Edit Event

Show in webframe
Example 




Occurs when an AnnObject is being edited.
Syntax
-(void) automation:(LTAnnAutomation*) automation editWithArgs:(LTAnnEditDesignerEventArgs*) e;
public void addEditDesignerdListener(AnnEditDesignerListener listener)
public void removeEditDesignerListener(AnnEditDesignerListener listener)
            
add_Edit(function(sender, e))
remove_Edit(function(sender, e))

Event Data

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.

PropertyDescription
Cancel  
MoveThumbIndex  
Object  
Operation  
OperationStatus  
Remarks

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.

Example
Copy Code  
using Leadtools.Annotations.Automation;
using Leadtools.Annotations.Core;
using Leadtools.Codecs;
using Leadtools.WinForms;

public void AnnAutomation_Edit()
{
   // Hook to the automation's Edit event
   _automation.Edit += _automation_Edit;
}
void _automation_Edit(object sender, AnnEditDesignerEventArgs e)
{
   if(e.OperationStatus == AnnDesignerOperationStatus.End)
      Debug.WriteLine("Object changed...");
}
using Leadtools.Annotations.Automation;
using Leadtools.Controls;
using Leadtools.Converters;
using Leadtools.Annotations.Core;
using Leadtools.Codecs;

[TestMethod]
public void AnnAutomation_Edit()
{
   // Hook to the automation's Edit event
   _automation.Edit += _automation_Edit;
}
void _automation_Edit(object sender, AnnEditDesignerEventArgs e)
{
   if(e.OperationStatus == AnnDesignerOperationStatus.End)
      Debug.WriteLine("Object changed...");
}
Requirements

Target Platforms

See Also

Reference

AnnAutomation Class
AnnAutomation Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.