Actions Row (Actions Section) [Visio 2003 SDK Documentation]

Contains cells that specify the actions associated with a custom command on a shortcut or smart tag menu. The Actions section contains one Actions row for each action.

Actions rows are named Actions.name and contain the following cells. For more details, see the specific cell topics.

Cell Description

Action

Contains the formula to be executed when a user chooses an item on a shortcut or smart tag menu.

Menu

Defines the name of the menu item that appears on a smart tag or shortcut menu.

TagName

The logical name of the smart tag in which this action should appear.

ButtonFace

Identifies the icon that appears next to an item on a shortcut or smart tag menu.

SortKey

A number that determines the order of menu items on a smart tag or shortcut menu.

Checked

Indicates whether the menu item is checked on a smart tag or shortcut menu.

Disabled

Indicates whether a menu item on a shortcut or smart tag menu is disabled.

ReadOnly

Indicates whether the menu item is read-only (cannot be clicked).

Invisible

Indicates whether the menu item is visible on the smart tag or shortcut menu.

BeginGroup

Indicates whether to insert a separator into the menu, above the menu item.

Remarks

You can add as many Actions.name rows as you need, assign meaningful names to the rows, and set cell values. To add a custom command to an existing Actions section, right-click a row and click Insert Row on the shortcut menu.

You can reference these cells by their row name, which appears in a ShapeSheet window in red text. To assign a meaningful name to an Actions.name row, click the row, and then type a name such as Custom, for example, to create the row name Actions.Custom. You can then reference the Menu cell using Actions.Custom.Menu.

The row name you enter must be unique within the section.