CommandBarItem Members

Functions

Name Description
ConnectHandler Connects the passed in Handler to this CommandBarItem. The CommandID is passed to the Handler when the command is executed.
Copy Copy the icon of the command bar button.
Delete Removes command bar button.
GetImage Returns the icon of the command bar button. Return value: Integer.
SetImage Sets the icon of the command bar button.

Properties

Name Description
Application Returns the application associated with the command bar button. Return value: Application. This property is read only.
Caption Returns/sets the name of the command bar button. Return/assignment value: String.
Command Returns/sets the command of the command bar button. Return/assignment value: Integer.
Count Returns the number of the command bar items. Return value: Integer. This property is read only.
DisplayMode Returns/sets the display of the command bar button (text, image, image and text). Return/assignment value: CommandDisplayMode.
Items Returns the collection of items on the command bar. Return value: CommandBarItems. This property is read only.
Parent Returns the command bar associated with the command bar button. Return value: CommandBarItems. This property is read only.
UserImage Returns/sets whether the icon of the command bar button is user defined. Return/assignment value: Boolean.