Share via


ToolbarItem Object Members

Visio Automation Reference

Represents one item in a Toolbar object. A ToolbarItem object can represent a button, combo box, or any other item on the Microsoft Office Visio toolbars.

Methods

  Name Description
Aa342287.methods(en-us,office.12).gif Delete Deletes an object.
Aa342287.methods(en-us,office.12).gif IconFileName Sets a custom icon file for a menu or toolbar item.

Properties

  Name Description
Aa342287.properties(en-us,office.12).gif ActionText Read/write. Gets or sets the action text for a menu, menu item, or toolbar item.
Aa342287.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.
Aa342287.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.
Aa342287.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.
Aa342287.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.
Aa342287.properties(en-us,office.12).gif Caption Gets or sets the caption for an object. Read/write.
Aa342287.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.
Aa342287.properties(en-us,office.12).gif CntrlType Gets or sets the control type of a menu, menu item, or toolbar item. Read/write.
Aa342287.properties(en-us,office.12).gif Enabled Determines whether or not an object is currently enabled. Read/write.
Aa342287.properties(en-us,office.12).gif FaceID Gets or sets the icon for an item. Read/write.
Aa342287.properties(en-us,office.12).gif Index Gets the ordinal position of a ToolbarItem object in the ToolbarItems collection. Read-only.
Aa342287.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
Aa342287.properties(en-us,office.12).gif PaletteWidth Gets or sets the width of a palette in pixels. Read/write.
Aa342287.properties(en-us,office.12).gif Parent Determines the parent of an object. Read-only.
Aa342287.properties(en-us,office.12).gif State Determines a button's state, pressed or not pressed. Read/write.
Aa342287.properties(en-us,office.12).gif Style Determines whether a toolbar button shows an icon, a caption, or some combination. Read/write.
Aa342287.properties(en-us,office.12).gif ToolbarItems Returns the ToolbarItems collection of a ToolbarItem object. Read-only.
Aa342287.properties(en-us,office.12).gif TypeSpecific1 Gets or sets the type of a toolbar item. Read/write.
Aa342287.properties(en-us,office.12).gif TypeSpecific2 Gets or sets the type of a toolbar item. Read/write.
Aa342287.properties(en-us,office.12).gif Visible Determines whether an object is visible. Read/write.
Aa342287.properties(en-us,office.12).gif Width Gets the width of an object in pixels. Read/write.