LEADTOOLS Annotations Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.22
AnnTextObject
Note: This topic is for Document/Medical only.

The text annotation object (AnnTextObject) is a rectangle containing a character string with font properties. The text will wrap on word breaks within the object's specified rectangle. With the automated functions, the user clicks and drags to specify the rectangle in the current window. A dialog box then lets the user enter the text.

Programmatically, the boundaries and location of the text object can be controlled using the following properties:

The AnnTextObject class inherits a number of properties from the AnnDrawable class that provide support for font, pen and brush characteristics. These properties are listed below:

The AnnTextObject class implements the IAnnTextObject interface which provides properties that support text alignment, margins, etc. These properties are listed below:

The name of the text object can be controlled using the following properties, inherited from the AnnObject class:

The following properties may be used in transforming a text annotation object:

An object can be part of a group annotation object or part of a container object. It cannot be part of both a group and a container at the same time. The Container property and the Group property, both inherited from the AnnObject class, contain information on the container or the group to which the object belongs.

The following properties can also be used to programmatically set characteristics of an AnnTextObject class object:

For more information about the automated text annotation object, refer to Annotation Objects - Automated Features.