LEADTOOLS WinRT (Leadtools.Annotations.Automation)
LEAD Technologies, Inc

EditText Event


Occurs when the text of an AnnObject is edited. WinRT support
Syntax
public event EventHandler<AnnEditTextEventArgs> EditText
add_EditText(function(sender, e))
remove_EditText(function(sender, e))

Event Data

The event handler receives an argument of type AnnEditTextEventArgs containing data related to this event. The following AnnEditTextEventArgs properties provide information specific to this event.

PropertyDescription
Bounds Gets the bounding rectangle of the Leadtools.Annotations.Core.AnnTextObject entering text-editing mode in screen/device coordinates.
Cancel Gets or sets a value indicating whether edit mode should be canceled.
TextObject Gets the Leadtools.Annotations.Core.AnnTextObject that is entering text-editing mode.
Remarks

This event will occur when the object being edited is a text object and the user initiates edit mode. For more information, refer to AnnTextEditDesigner.EditText.

Example

This example will show how to change the string used by an annotation text object when it enters edit mode.

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 then draw a text object and double click on it.

Requirements

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

See Also

Reference

AnnAutomation Class
AnnAutomation Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.