_CommandBarButton Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a button control on a command bar.
public interface class _CommandBarButton : Microsoft::Office::Core::CommandBarControl
[System.Runtime.InteropServices.Guid("000C030E-0000-0000-C000-000000000046")]
public interface _CommandBarButton : Microsoft.Office.Core.CommandBarControl
[<System.Runtime.InteropServices.Guid("000C030E-0000-0000-C000-000000000046")>]
type _CommandBarButton = interface
interface CommandBarControl
Public Interface _CommandBarButton
Implements CommandBarControl
- Derived
- Attributes
- Implements
Remarks
Use Controls(index
), where index
is the index number of the control, to return a CommandBarButton object. (The Type property of the control must be msoControlButton.)
You can also use the FindControl(Object, Object, Object, Object) method to return a CommandBarButton object.
Properties
accChild[Object] |
Reserved for internal use. |
accChildCount |
Reserved for internal use. |
accDefaultAction[Object] |
Reserved for internal use. |
accDescription[Object] |
Reserved for internal use. |
accFocus |
Reserved for internal use. |
accHelp[Object] |
Reserved for internal use. |
accHelpTopic[String, Object] |
Reserved for internal use. |
accKeyboardShortcut[Object] |
Reserved for internal use. |
accName[Object] |
Reserved for internal use. |
accParent |
Reserved for internal use. |
accRole[Object] |
Reserved for internal use. |
accSelection |
Reserved for internal use. |
accState[Object] |
Reserved for internal use. |
accValue[Object] |
Reserved for internal use. |
Application |
Returns an Application object that represents the container application for the object. |
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. |
BuiltIn |
Returns a value that indicates if the specified command bar control is a built-in control of the container application. |
BuiltInFace |
Returns or sets a value that indicates if the face of a command bar button control is its original built-in face. |
Caption |
Returns or sets the caption text for a command bar control. |
Control |
Reserved for internal use. |
Creator |
Returns a value that indicates the application in which the specified object was created. |
DescriptionText |
Returns or sets the description for a command bar control. |
Enabled |
Returns or sets a value that indicates if the specified command bar control is enabled. |
FaceId |
Returns or sets the ID number for the face of a command bar button control. |
Height |
Returns or sets the height of a command bar control. |
HelpContextId |
Returns or sets the Help context ID number for the Help topic attached to the command bar control. |
HelpFile |
Returns or sets the file name for the Help topic attached to the command bar control. |
HyperlinkType |
Returns or sets the type of hyperlink associated with the specified command bar button. |
Id |
Returns the ID for a built-in command bar control. |
Index |
Returns a value that indicates the index number for an object in the collection. |
InstanceId |
Reserved for internal use. |
InstanceIdPtr |
Reserved for internal use. |
IsPriorityDropped |
Returns a value that indicates if the control is currently dropped from the menu or toolbar based on usage statistics and layout space. |
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. |
Mask |
Returns or sets an IPictureDisp object that represents the mask image of a _CommandBarButton object. |
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. |
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. |
Parameter |
Returns or sets a value that an application can use to execute a command. |
Parent |
Returns a value that indicates the parent object for the specified object. |
Picture |
Returns or sets an IPictureDisp object representing the image of a _CommandBarButton object. |
Priority |
Returns or sets the priority of a command bar control. |
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. |
State |
Returns or sets the appearance of a command bar button control. |
Style |
Returns or sets the way a command bar button control is displayed. |
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. |
TooltipText |
Returns or sets the text displayed in a command bar control's ScreenTip. |
Top |
Returns the distance (in pixels) from the top edge of the specified command bar control to the top edge of the screen. |
Type |
Returns the type of command bar control. |
Visible |
Returns or sets a value that indicates if the specified object is visible. |
Width |
Returns or sets the width (in pixels) of the specified command bar control. |
Methods
accDoDefaultAction(Object) |
Reserved for internal use. |
accHitTest(Int32, Int32) |
Reserved for internal use. |
accLocation(Int32, Int32, Int32, Int32, Object) |
Reserved for internal use. |
accNavigate(Int32, Object) |
Reserved for internal use. |
accSelect(Int32, Object) |
Reserved for internal use. |
Copy(Object, Object) |
Copies a command bar control to an existing command bar. |
CopyFace() |
Copies the face of a command bar button control to the Clipboard. |
Delete(Object) |
Deletes the specified object from its collection. |
Execute() |
Runs the procedure or built-in command assigned to the specified command bar control. |
Move(Object, Object) |
Moves the specified command bar control to an existing command bar. |
PasteFace() |
Pastes the contents of the Clipboard onto a command bar button control. |
Reserved1() |
Reserved for internal use. |
Reserved2() |
Reserved for internal use. |
Reserved3() |
Reserved for internal use. |
Reserved4() |
Reserved for internal use. |
Reserved5() |
Reserved for internal use. |
Reserved6() |
Reserved for internal use. |
Reserved7() |
Reserved for internal use. |
Reset() |
Resets a built-in command bar control to its original function and face. |
SetFocus() |
Moves the keyboard focus to the specified command bar control. |