←Select platform

EditText Event

Summary
Occurs when the user enters text edit mode in this AnnTextEditDesigner.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public event EventHandler<AnnEditTextEventArgs> EditText 
- (void)textEditDesigner:(LTAnnTextEditDesigner *)designer editWithArgs:(LTAnnEditTextEventArgs *)args 
public void addEditTextListener(AnnEditTextListener listener) 
public void removeEditTextListener(AnnEditTextListener listener) 
public:  
   event EventHandler<AnnEditTextEventArgs^>^ EditText 
def EditText(sender,e): # sender: AnnTextEditDesigner e: Leadtools.Annotations.Engine.AnnEditTextEventArgs 
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 AnnTextObject entering text-editing mode in screen/device coordinates.
Cancel A value indicating whether edit mode should be canceled.
TextObject Gets the AnnTextObject that is entering text-editing mode.
Remarks

When the user enters the text edit mode in this AnnTextEditDesigner, usually, by double clicking or tapping on the object, the EditText event will occur. If the user does not cancel the operation as described below, then this designed will create a temporary edit control on the page to allow the user to enter and edit the text.

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:

Property Description
Cancel

A value indicating whether to cancel the default operation. When this property is set to true, the designer will not create the temporary edit control on the page and it is assumed that a different mechanism has been implemented by the application.

Bounds

Gets the current bounding rectangle of the text object.

TextObject

The AnnTextObject being edited.

AnnEditTextEventArgs

Requirements

Target Platforms

Help Version 23.0.2024.5.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Designers Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.