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
Aa342266.methods(en-us,office.12).gif Delete Deletes an object.
Aa342266.methods(en-us,office.12).gif IconFileName Sets a custom icon file for a menu or toolbar item.

Properties

  Name Description
Aa342266.properties(en-us,office.12).gif ActionText Read/write. Gets or sets the action text for a menu, menu item, or toolbar item.
Aa342266.properties(en-us,office.12).gif AddOnArgs Gets or sets the argument string that you send to the add-on associated with a particular menu or toolbar. Read/write.
Aa342266.properties(en-us,office.12).gif 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.
Aa342266.properties(en-us,office.12).gif 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.
Aa342266.properties(en-us,office.12).gif BuiltIn Determines whether an object is a default Microsoft Office Visio user interface object or a custom object. Read-only.
Aa342266.properties(en-us,office.12).gif Caption Gets or sets the caption for an object. Read/write.
Aa342266.properties(en-us,office.12).gif CmdNum Gets or sets the command ID associated with an accelerator, menu, menu item, or toolbar item. Read/write.
Aa342266.properties(en-us,office.12).gif CntrlType Gets or sets the control type of a menu, menu item, or toolbar item. Read/write.
Aa342266.properties(en-us,office.12).gif Enabled Determines whether or not an object is currently enabled. Read/write.
Aa342266.properties(en-us,office.12).gif FaceID Gets or sets the icon for an item. Read/write.
Aa342266.properties(en-us,office.12).gif Index Gets the ordinal position of a MenuItem object in the MenuItems collection. Read-only.
Aa342266.properties(en-us,office.12).gif 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
Aa342266.properties(en-us,office.12).gif MenuItems Returns the MenuItems collection of an object. Read-only.
Aa342266.properties(en-us,office.12).gif PaletteWidth Gets or sets the width of a palette in pixels. Read/write.
Aa342266.properties(en-us,office.12).gif Parent Determines the parent of an object. Read-only.
Aa342266.properties(en-us,office.12).gif State Determines a button's state, pressed or not pressed. Read/write.
Aa342266.properties(en-us,office.12).gif Style Determines whether a menu item shows an icon, a caption, or some combination. Read/write.
Aa342266.properties(en-us,office.12).gif TypeSpecific1 Gets or sets the type of a menu item. Read/write.
Aa342266.properties(en-us,office.12).gif TypeSpecific2 Gets or sets the type of a menu item. Read/write.
Aa342266.properties(en-us,office.12).gif Visible Determines whether an object is visible. Read/write.
Aa342266.properties(en-us,office.12).gif Width Gets the width of an object in pixels. Read/write.