AnnSetAutoText method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Visual J++ 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:  AnnGetAutoText method

Topics:  Annotations (Document/Medical only): Automation