AddItem method (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax short AddItem (BSTR pszString, short iType, long nID, short iIndexBefore);

Overview:  Refer to Annotation Menu.

Remarks

Adds a menu item with the specified string, type and id, before the item specified in iIndexBefore.

When the user selects an item added using this method, the AnnUserMenu event will be fired. The nID value passed to the AnnUserMenu event is the same nID passed to this method.

This method is associated with the AnnMenu object that is passed to the AnnMenu event.

See Also

Elements:  AnnMenu event, Count property, ItemString property, ItemType property, ItemID property, ItemEnabled property, ItemChecked property, DeleteItem method, GetSubMenu Method, AnnUserMenu event

Topics:  Annotations (Document/Medical only): Automation