LEADTOOLS Annotations Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.22
AnnRichTextObject

Note: This topic is for Document/Medical only.

The Rich Text annotation object (AnnRichTextObject) is a rectangle containing text that supports the Rich Text Format (RTF) file format.

In design mode, click and drag to specify the rectangle in the current container. Holding down the Shift key while drawing the rectangle will make the text annotation square. A dialog box then lets the user enter the text. A menu also appears for further formatting of text. Formatting support includes:

The AnnRichTextObject contains the Rtf property which can be used to get or set the Rich Text Format string to be displayed in the object.

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

The AnnRichTextObject 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 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 AnnRichTextObject class object:

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