MenuItem Object Members
Visio Automation Reference |
Represents a single menu item on a Microsoft Office Visio menu, such as the Copy menu item on the Edit menu.
Methods
Name | Description | |
---|---|---|
Delete | Deletes an object. | |
IconFileName | Sets a custom icon file for a menu or toolbar item. |
Properties
Name | Description | |
---|---|---|
ActionText | Read/write. Gets or sets the action text for a menu, menu item, or toolbar item. | |
AddOnArgs | Gets or sets the argument string that you send to the add-on associated with a particular menu or toolbar. Read/write. | |
AddOnName | Gets or sets the name of an add-on or procedure that is run when its associated menu item, toolbar button, or accelerator key is selected. Read/write. | |
BeginGroup | Determines whether a menu item or toolbar item appears at the beginning of a group of items on the menu or toolbar. Read/write. | |
BuiltIn | Determines whether an object is a default Microsoft Office Visio user interface object or a custom object. Read-only. | |
Caption | Gets or sets the caption for an object. Read/write. | |
CmdNum | Gets or sets the command ID associated with an accelerator, menu, menu item, or toolbar item. Read/write. | |
CntrlType | Gets or sets the control type of a menu, menu item, or toolbar item. Read/write. | |
Enabled | Determines whether or not an object is currently enabled. Read/write. | |
FaceID | Gets or sets the icon for an item. Read/write. | |
Index | Gets the ordinal position of a MenuItem object in the MenuItems collection. Read-only. | |
IsHierarchical | Indicates whether a menu, menu item, or toolbar item is hierarchical; that is, whether it contains a drop-down menu that contains more items, which can in turn be accessed by iterating through the MenuItems or ToolbarItems collection of the menu, menu item, or toolbar.Read-only | |
MenuItems | Returns the MenuItems collection of an object. Read-only. | |
PaletteWidth | Gets or sets the width of a palette in pixels. Read/write. | |
Parent | Determines the parent of an object. Read-only. | |
State | Determines a button's state, pressed or not pressed. Read/write. | |
Style | Determines whether a menu item shows an icon, a caption, or some combination. Read/write. | |
TypeSpecific1 | Gets or sets the type of a menu item. Read/write. | |
TypeSpecific2 | Gets or sets the type of a menu item. Read/write. | |
Visible | Determines whether an object is visible. Read/write. | |
Width | Gets the width of an object in pixels. Read/write. |