AnnSetText method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnSetText(HANNOBJECT hObject, AnsiString strText, bool bSelected)

Delphi Syntax

Function AnnSetText (hObject: HANNOBJECT; strText: String; bSelected: Boolean ): L_INT

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets the text (character string) of one or more annotation objects.

This method does not affect objects that do not have this property or that do not let you change the property. For descriptions of the various types of objects and their properties, refer to Types of Annotations.

This method can be used to load unformatted text into an ANNOBJECT_RTF object. To load rich text into an ANNOBJECT_RTF object, see the documentation for AnnRTFText.

See Also

Elements:

AnnGetText method, AnnGetAutoText method, AnnSetAutoText method

Topics:

Annotations (Document/Medical only): Object Manipulation