AnnSetAutoText method (ILEADRasterAnnotation)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short AnnSetAutoText (short iItem, BSTR pszText);

Overview

Refer to Implementing Annotations.

Remarks

(Document/Medical only) Sets the character string that is used for the specified menu item or other element that LEADTOOLS provides for automated annotations.

To get the current value of a text string, you can use the AnnGetAutoText method.

When you call this method with an empty string for pszText, the menu item defined by iItem will be disabled and removed from the automation menu. To re-enable the menu item, call this method again and pass a valid string.

See Also

Elements

AnnAutoSnapCursor property, AnnTextEdit method, AnnGetAutoText method, AnnAutoHilightPen property

Topics

Annotations (Document/Medical only): Automation