edit Event

Summary

Occurs when an AnnObject is being edited.

Syntax

JavaScript Syntax
Object.defineProperty(AnnAutomation.prototype,'edit',  
	get: function(), 
	set: function(value) 
) 
function edit.add(function(sender, e)); 
function edit.remove(function(sender, e)); 
TypeScript Syntax
edit: void; 

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

The following 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.

JavaScript Example
example: function SiteLibrary_DefaultPage$example() { 
   var _this = this; 
   // Hook to the automation's Edit event 
   this._automation.add_edit(function(sender, e) { 
      // e is of type AnnEditDesignerEventArgs 
 
      if(e.get_operationStatus() == lt.Annotations.Core.AnnDesignerOperationStatus.end) { 
         alert("Object changed..."); 
      } 
   }); 
}, 

Event Data
ParameterTypeDescription
sendervarThe source of the event.
eAnnEditDesignerEventArgsThe event data.
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