CommandBarButton Interface

 

Represents the command bar button.

Namespace:   Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

[GuidAttribute("E11C7CE2-8641-4183-9458-309C6A201CDD")]
[CoClassAttribute(typeof(CommandBarButtonClass))]
public interface CommandBarButton : _CommandBarButton, _CommandBarButtonEvents_Event

NameDescription
System_CAPS_pubpropertyaccChild[Object]

Gets the child. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccChildCount

Gets the number of children. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccDefaultAction[Object]

Gets the default action. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccDescription[Object]

Gets the description. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccFocus

Gets the focus. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccHelp[Object]

Gets the help. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccHelpTopic[String, Object]

Gets the help topic. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccKeyboardShortcut[Object]

Gets the keyboard shortcut. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccName[Object]

Gets the name of the object.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccParent

Gets the parent. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccRole[Object]

Gets the role. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccSelection

Gets the selection. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccState[Object]

Gets the state. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyaccValue[Object]

Gets the value. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyApplication

Gets the DTE object.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyBeginGroup

Determines whether this control is the first in its group.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyBuiltIn

Determines whether this control is a custom control or a built-in control.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyBuiltInFace

The built-in image. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyCaption

Gets the caption of the control.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyControl

Gets the control itself. (Inherited from _CommandBarButton.)

System_CAPS_pubpropertyCreator

Gets the ID of the application.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyDescriptionText

Always returns the empty string.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyEnabled

Determines whether the control is enabled.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyFaceId

This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyHeight

Gets the height of the button.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyHelpContextId

Gets the help context ID. Always returns 0.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyHelpFile

Always returns the empty string.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyHyperlinkType

Gets the hyperlink type. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyId

Gets the identifier of the button.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyIndex

Gets the index of this control in the set of controls on the command bar.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyInstanceId

Gets the instance ID of this control.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyIsPriorityDropped

Determines whether the priority has been lowered. Always returns false.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyLeft

Gets the left coordinates. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyMask

Gets the mask. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyOLEUsage

Gets or sets the OLE usage. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyOnAction

Gets or sets the OnAction string.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyParameter

Gets or sets the parameter that is used with the command.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyParent

Gets the parent command bar.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyPicture

Gets or sets the icon that appears on the button.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyPriority

Gets the priority. Always returns 1.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyShortcutText

Gets or sets the shortcut text. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyState

Gets or sets the state. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyStyle

Gets or sets the button style.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyTag

Gets or sets the tag. Not used in Visual Studio.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyTooltipText

Gets or sets the tooltip text.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyTop

Gets the top. This property is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyType

Gets the type of the control.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyVisible

Determines whether this control is visible.(Inherited from _CommandBarButton.)

System_CAPS_pubpropertyWidth

Gets or sets the width of the control.(Inherited from _CommandBarButton.)

NameDescription
System_CAPS_pubmethodaccDoDefaultAction(Object)

Performs the default action. This method is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodaccHitTest(Int32, Int32)

Gets the object at the specified coordinates. This method is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodaccLocation(Int32, Int32, Int32, Int32, Object)

Gets the location of the control. This method is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodaccNavigate(Int32, Object)

Navigates to another object. This method is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodaccSelect(Int32, Object)

Selects an object. This method is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodadd_Click(_CommandBarButtonEvents_ClickEventHandler)

Adds the click event handler.(Inherited from _CommandBarButtonEvents_Event.)

System_CAPS_pubmethodCopy(Object, Object)

Copies this control to the specified position on the specified command bar.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodCopyFace()

Copies the image. This method is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodDelete(Object)

Removes this control from the collection.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodExecute()

Performs the action of this control.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodMove(Object, Object)

Moves this control to the specified command bar at the specified position.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodPasteFace()

Pastes the image. This method is deprecated.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodremove_Click(_CommandBarButtonEvents_ClickEventHandler)

Removes the click event handler.(Inherited from _CommandBarButtonEvents_Event.)

System_CAPS_pubmethodReserved1()

Reserved.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodReserved2()

Reserved.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodReserved3()

Reserved.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodReserved4()

Reserved.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodReserved5()

Reserved.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodReserved6()

Reserved.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodReserved7()

Reserved.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodReset()

Resets the button.(Inherited from _CommandBarButton.)

System_CAPS_pubmethodSetFocus()

Sets the focus.(Inherited from _CommandBarButton.)

NameDescription
System_CAPS_pubeventClick

The click event. Microsoft Internal Use Only.(Inherited from _CommandBarButtonEvents_Event.)

A _CommandBarButton implements only CommandBarControl, which defines no events. A CommandBarButton implements both _CommandBarButton and _CommandBarButtonEvents_Event. CommandBarButtonClass implements all three interfaces.

Return to top
Show: