AnnGetText method (Annotation Control)

C++ Builder example

Delphi example

 

Builder Syntax

int AnnGetText(HANNOBJECT hObject, AnsiString &strText)

Delphi Syntax

Function AnnGetText (hObject: HANNOBJECT; var strText: String ): L_INT

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Gets the text (character string) of the specified annotation object.

Note:

The text of the ruler object (which can be retrieved through AnnGetText is the length + unit abbrev. The distance is reset every time the object is changed.

AnnGetText can be used to retreive the text from a Rich Text annotation object (ANNOBJECT_RTF). However, no formatting information will be preserved. To retrieve the text with formatting, see AnnRTFText.

See Also

Elements:

AnnSetText method, AnnGetAutoText method, AnnSetAutoText method

Topics:

Annotations (Document/Medical only): Object Manipulation