_CommandBarButton Members

Include Protected Members
Include Inherited Members

Represents a button control on a command bar.

The _CommandBarButton type exposes the following members.

Properties

  Name Description
Public property accChild[Object] Reserved for internal use.
Public property accChild[Object] Reserved for internal use. (Inherited from CommandBarControl.)
Public property accChildCount Reserved for internal use.
Public property accChildCount Reserved for internal use. (Inherited from CommandBarControl.)
Public property accDefaultAction[Object] Reserved for internal use.
Public property accDefaultAction[Object] Reserved for internal use. (Inherited from CommandBarControl.)
Public property accDescription[Object] Reserved for internal use.
Public property accDescription[Object] Reserved for internal use. (Inherited from CommandBarControl.)
Public property accFocus Reserved for internal use.
Public property accFocus Reserved for internal use. (Inherited from CommandBarControl.)
Public property accHelp[Object] Reserved for internal use.
Public property accHelp[Object] Reserved for internal use. (Inherited from CommandBarControl.)
Public property accHelpTopic[String, Object] Reserved for internal use.
Public property accHelpTopic[String, Object] Reserved for internal use. (Inherited from CommandBarControl.)
Public property accKeyboardShortcut[Object] Reserved for internal use.
Public property accKeyboardShortcut[Object] Reserved for internal use. (Inherited from CommandBarControl.)
Public property accName[Object] Reserved for internal use.
Public property accName[Object] Reserved for internal use. (Inherited from CommandBarControl.)
Public property accParent Reserved for internal use.
Public property accParent Reserved for internal use. (Inherited from CommandBarControl.)
Public property accRole[Object] Reserved for internal use.
Public property accRole[Object] Reserved for internal use. (Inherited from CommandBarControl.)
Public property accSelection Reserved for internal use.
Public property accSelection Reserved for internal use. (Inherited from CommandBarControl.)
Public property accState[Object] Reserved for internal use.
Public property accState[Object] Reserved for internal use. (Inherited from CommandBarControl.)
Public property accValue[Object] Reserved for internal use.
Public property accValue[Object] Reserved for internal use. (Inherited from CommandBarControl.)
Public property Application Returns an Application object that represents the container application for the object.
Public property Application Returns an Application object that represents the container application for the object. (Inherited from CommandBarControl.)
Public property BeginGroup Returns or sets a value that indicates if the specified command bar control appears at the beginning of a group of controls on the command bar.
Public property BeginGroup Determines if the specified command bar control appears at the beginning of a group of controls on the command bar. (Inherited from CommandBarControl.)
Public property BuiltIn Returns a value that indicates if the specified command bar control is a built-in control of the container application.
Public property BuiltIn Determines if the specified command bar control is a built-in control of the container application. (Inherited from CommandBarControl.)
Public property BuiltInFace Returns or sets a value that indicates if the face of a command bar button control is its original built-in face.
Public property Caption Returns or sets the caption text for a command bar control.
Public property Caption Returns or sets the caption text for a command bar control. (Inherited from CommandBarControl.)
Public property Control Reserved for internal use.
Public property Control Reserved for internal use. (Inherited from CommandBarControl.)
Public property Creator Returns a value that indicates the application in which the specified object was created.
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created. (Inherited from CommandBarControl.)
Public property DescriptionText Returns or sets the description for a command bar control.
Public property DescriptionText Returns or sets the description for a command bar control. (Inherited from CommandBarControl.)
Public property Enabled Returns or sets a value that indicates if the specified command bar control is enabled.
Public property Enabled Determines if the specified command bar control is enabled. (Inherited from CommandBarControl.)
Public property FaceId Returns or sets the ID number for the face of a command bar button control.
Public property Height Returns or sets the height of a command bar control.
Public property Height Returns or sets the height of a command bar control. (Inherited from CommandBarControl.)
Public property HelpContextId Returns or sets the Help context ID number for the Help topic attached to the command bar control.
Public property HelpContextId Returns or sets the Help context Id number for the Help topic attached to the command bar control. (Inherited from CommandBarControl.)
Public property HelpFile Returns or sets the file name for the Help topic attached to the command bar control.
Public property HelpFile Returns or sets the file name for the Help topic attached to the command bar control. (Inherited from CommandBarControl.)
Public property HyperlinkType Returns or sets the type of hyperlink associated with the specified command bar button.
Public property Id Returns the ID for a built-in command bar control.
Public property Id Returns the ID for a built-in command bar control. (Inherited from CommandBarControl.)
Public property Index Returns a value that indicates the index number for an object in the collection.
Public property Index Returns an Integer representing the index number for an object in the collection. (Inherited from CommandBarControl.)
Public property InstanceId Reserved for internal use.
Public property InstanceId Reserved for internal use. (Inherited from CommandBarControl.)
Public property InstanceIdPtr Reserved for internal use.
Public property IsPriorityDropped Returns a value that indicates if the control is currently dropped from the menu or toolbar based on usage statistics and layout space.
Public property IsPriorityDropped Determines if the control is currently dropped from the menu or toolbar based on usage statistics and layout space. (Inherited from CommandBarControl.)
Public property Left Returns a value that indicates the horizontal position of the specified command bar control (in pixels) relative to the left edge of the screen.
Public property Left Returns the horizontal position of the specified command bar control (in pixels) relative to the left edge of the screen. (Inherited from CommandBarControl.)
Public property Mask Returns or sets an IPictureDisp object that represents the mask image of a _CommandBarButton object.
Public property OLEUsage Returns or sets the OLE client and OLE server roles in which a command bar control will be used when two Microsoft Office applications are merged.
Public property OLEUsage Returns or sets the OLE client and OLE server roles in which a command bar control will be used when two Microsoft Office applications are merged. (Inherited from CommandBarControl.)
Public property OnAction Returns or sets the name of a Visual Basic procedure that will run when the user clicks or changes the value of a command bar control.
Public property OnAction Returns or sets the name of a procedure that will run when the user clicks or changes the value of a command bar control. (Inherited from CommandBarControl.)
Public property Parameter Returns or sets a value that an application can use to execute a command.
Public property Parameter Returns or sets a string that an application can use to execute a command. (Inherited from CommandBarControl.)
Public property Parent Returns a value that indicates the parent object for the specified object.
Public property Parent Returns the Parent object for the specified object. (Inherited from CommandBarControl.)
Public property Picture Returns or sets an IPictureDisp object representing the image of a _CommandBarButton object.
Public property Priority Returns or sets the priority of a command bar control.
Public property Priority Returns or sets the priority of a command bar control. (Inherited from CommandBarControl.)
Public property ShortcutText Returns or sets the shortcut key text displayed next to a button control when the button appears on a menu, submenu, or shortcut menu.
Public property State Returns or sets the appearance of a command bar button control.
Public property Style Returns or sets the way a command bar button control is displayed.
Public property Tag Returns or sets the information about the command bar control, such as data that can be used as an argument in procedures, or information that identifies the control.
Public property Tag Returns or sets information about the command bar control, such as data that can be used as an argument in procedures, or information that identifies the control. (Inherited from CommandBarControl.)
Public property TooltipText Returns or sets the text displayed in a command bar control's ScreenTip.
Public property TooltipText Returns or sets the text displayed in a command bar control's ScreenTip. (Inherited from CommandBarControl.)
Public property Top Returns the distance (in pixels) from the top edge of the specified command bar control to the top edge of the screen.
Public property Top Returns the distance (in pixels) from the top edge of the specified command bar control to the top edge of the screen. (Inherited from CommandBarControl.)
Public property Type Returns the type of command bar control.
Public property Type Returns the type of command bar control. (Inherited from CommandBarControl.)
Public property Visible Returns or sets a value that indicates if the specified object is visible.
Public property Visible Determines if the specified object is visible. (Inherited from CommandBarControl.)
Public property Width Returns or sets the width (in pixels) of the specified command bar control.
Public property Width Returns or sets the width (in pixels) of the specified command bar control. (Inherited from CommandBarControl.)

Top

Methods

  Name Description
Public method accDoDefaultAction(Object) Reserved for internal use.
Public method accDoDefaultAction(Object) Reserved for internal use. (Inherited from CommandBarControl.)
Public method accHitTest(Int32, Int32) Reserved for internal use.
Public method accHitTest(Int32, Int32) Reserved for internal use. (Inherited from CommandBarControl.)
Public method accLocation(Int32, Int32, Int32, Int32, Object) Reserved for internal use.
Public method accLocation(Int32, Int32, Int32, Int32, Object) Reserved for internal use. (Inherited from CommandBarControl.)
Public method accNavigate(Int32, Object) Reserved for internal use.
Public method accNavigate(Int32, Object) Reserved for internal use. (Inherited from CommandBarControl.)
Public method accSelect(Int32, Object) Reserved for internal use.
Public method accSelect(Int32, Object) Reserved for internal use. (Inherited from CommandBarControl.)
Public method Copy(Object, Object) Copies a command bar control to an existing command bar.
Public method Copy(Object, Object) Copies a command bar control to an existing command bar. (Inherited from CommandBarControl.)
Public method CopyFace Copies the face of a command bar button control to the Clipboard.
Public method Delete(Object) Deletes the specified object from its collection.
Public method Delete(Object) Deletes the specified object from its collection. (Inherited from CommandBarControl.)
Public method Execute() Runs the procedure or built-in command assigned to the specified command bar control.
Public method Execute() Runs the procedure or built-in command assigned to the specified command bar control. (Inherited from CommandBarControl.)
Public method Move(Object, Object) Moves the specified command bar control to an existing command bar.
Public method Move(Object, Object) Moves the specified command bar control to an existing command bar. (Inherited from CommandBarControl.)
Public method PasteFace Pastes the contents of the Clipboard onto a command bar button control.
Public method Reserved1() Reserved for internal use.
Public method Reserved1() Reserved for internal use. (Inherited from CommandBarControl.)
Public method Reserved2() Reserved for internal use.
Public method Reserved2() Reserved for internal use. (Inherited from CommandBarControl.)
Public method Reserved3() Reserved for internal use.
Public method Reserved3() Reserved for internal use. (Inherited from CommandBarControl.)
Public method Reserved4() Reserved for internal use.
Public method Reserved4() Reserved for internal use. (Inherited from CommandBarControl.)
Public method Reserved5() Reserved for internal use.
Public method Reserved5() Reserved for internal use. (Inherited from CommandBarControl.)
Public method Reserved6() Reserved for internal use.
Public method Reserved6() Reserved for internal use. (Inherited from CommandBarControl.)
Public method Reserved7() Reserved for internal use.
Public method Reserved7() Reserved for internal use. (Inherited from CommandBarControl.)
Public method Reset() Resets a built-in command bar control to its original function and face.
Public method Reset() Resets a built-in command bar control to its original function and face. (Inherited from CommandBarControl.)
Public method SetFocus() Moves the keyboard focus to the specified command bar control.
Public method SetFocus() Moves the keyboard focus to the specified command bar control. (Inherited from CommandBarControl.)

Top

See Also

Reference

_CommandBarButton Interface

Microsoft.Office.Core Namespace