CommandBarButtonClass Class

 

See T:Microsoft.VisualStudio.CommandBars._CommandBarButton for details.

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

System.Object
  Microsoft.VisualStudio.CommandBars.CommandBarButtonClass

[GuidAttribute("E322950C-AAF9-43DF-A328-62A1A7E96AA6")]
[ClassInterfaceAttribute(0)]
[ComSourceInterfacesAttribute("")]
public class CommandBarButtonClass : _CommandBarButton, CommandBarButton, 
	_CommandBarButtonEvents_Event

NameDescription
System_CAPS_pubpropertyaccChild[Object]

Gets the child. This property is deprecated.

System_CAPS_pubpropertyaccChildCount

Gets the number of children. This property is deprecated.

System_CAPS_pubpropertyaccDefaultAction[Object]

Gets the default action. This property is deprecated.

System_CAPS_pubpropertyaccDescription[Object]

Gets the description. This property is deprecated.

System_CAPS_pubpropertyaccFocus

Gets the focus. This property is deprecated.

System_CAPS_pubpropertyaccHelp[Object]

Gets the help. This property is deprecated.

System_CAPS_pubpropertyaccHelpTopic[String, Object]

Gets the help topic. This property is deprecated.

System_CAPS_pubpropertyaccKeyboardShortcut[Object]

Gets the keyboard shortcut. This property is deprecated.

System_CAPS_pubpropertyaccName[Object]

Gets the name of the object.

System_CAPS_pubpropertyaccParent

Gets the parent. This property is deprecated.

System_CAPS_pubpropertyaccRole[Object]

Gets the role. This property is deprecated.

System_CAPS_pubpropertyaccSelection

Gets the selection. This property is deprecated.

System_CAPS_pubpropertyaccState[Object]

Gets the state. This property is deprecated.

System_CAPS_pubpropertyaccValue[Object]

Gets the value. This property is deprecated.

System_CAPS_pubpropertyApplication

Gets the DTE object.

System_CAPS_pubpropertyBeginGroup

Determines whether this control is the first in its group.

System_CAPS_pubpropertyBuiltIn

Determines whether this control is a custom control or a built-in control.

System_CAPS_pubpropertyBuiltInFace

This property is deprecated.

System_CAPS_pubpropertyCaption

Gets the caption.

System_CAPS_pubpropertyControl

Gets the control itself.

System_CAPS_pubpropertyCreator

Gets the ID of the application.

System_CAPS_pubpropertyDescriptionText

Always returns the empty string.

System_CAPS_pubpropertyEnabled

Determines whether the control is enabled.

System_CAPS_pubpropertyFaceId

This property is deprecated.

System_CAPS_pubpropertyHeight

Gets the height of the button.

System_CAPS_pubpropertyHelpContextId

Gets the help context ID. Always returns 0.

System_CAPS_pubpropertyHelpFile

Always returns the empty string.

System_CAPS_pubpropertyHyperlinkType

Gets the hyperlink type. This property is deprecated.

System_CAPS_pubpropertyId

Gets the identifier of the button.

System_CAPS_pubpropertyIndex

Gets the index of this control in the set of controls on the command bar.

System_CAPS_pubpropertyInstanceId

Gets the instance ID of this control.

System_CAPS_pubpropertyIsPriorityDropped

Determines whether the priority has been lowered. Always returns false.

System_CAPS_pubpropertyLeft

Gets the left coordinates. This property is deprecated.

System_CAPS_pubpropertyMask

Gets the mask. This property is deprecated.

System_CAPS_pubpropertyOLEUsage

Gets or sets the OLE usage. This property is deprecated.

System_CAPS_pubpropertyOnAction

Gets or sets the OnAction string.

System_CAPS_pubpropertyParameter

Gets or sets the parameter that is used with the command.

System_CAPS_pubpropertyParent

Gets the parent command bar.

System_CAPS_pubpropertyPicture

Gets or sets the icon that appears on the button..

System_CAPS_pubpropertyPriority

Gets the priority. Always returns 1.

System_CAPS_pubpropertyShortcutText

Gets or sets the shortcut text. This property is deprecated.

System_CAPS_pubpropertyState

Gets or sets the state. This property is deprecated.

System_CAPS_pubpropertyStyle

Gets or sets the style of the button.

System_CAPS_pubpropertyTag

Gets or sets the tag.

System_CAPS_pubpropertyTooltipText

Gets or sets the tooltip text.

System_CAPS_pubpropertyTop

Gets the top. This property is deprecated.

System_CAPS_pubpropertyType

Gets the type of the control.

System_CAPS_pubpropertyVisible

Determines whether this control is visible.

System_CAPS_pubpropertyWidth

Gets or sets the width of the control.

NameDescription
System_CAPS_pubmethodaccDoDefaultAction(Object)

Performs the default action. This method is deprecated.

System_CAPS_pubmethodaccHitTest(Int32, Int32)

Gets the object at the specified coordinates. This method is deprecated.

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

Gets the location of the control. This method is deprecated.

System_CAPS_pubmethodaccNavigate(Int32, Object)

Navigates to another object. This method is deprecated.

System_CAPS_pubmethodaccSelect(Int32, Object)

Selects an object. This method is deprecated.

System_CAPS_pubmethodadd_Click(_CommandBarButtonEvents_ClickEventHandler)

Adds the click event handler.

System_CAPS_pubmethodCopy(Object, Object)

Copies this control to the specified position on the specified command bar.

System_CAPS_pubmethodCopyFace()

Copies the face. This method is deprecated.

System_CAPS_pubmethodDelete(Object)

Removes this control from the collection.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecute()

Performs the action of this control.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodMove(Object, Object)

Moves this control to the specified command bar at the specified position.

System_CAPS_pubmethodPasteFace()

Pastes the face. This method is deprecated.

System_CAPS_pubmethodremove_Click(_CommandBarButtonEvents_ClickEventHandler)

Removes the click event handler.

System_CAPS_pubmethodReserved1()

Reserved.

System_CAPS_pubmethodReserved2()

Reserved.

System_CAPS_pubmethodReserved3()

Reserved.

System_CAPS_pubmethodReserved4()

Reserved.

System_CAPS_pubmethodReserved5()

Reserved.

System_CAPS_pubmethodReserved6()

Reserved.

System_CAPS_pubmethodReserved7()

Reserved.

System_CAPS_pubmethodReset()

Resets the control.

System_CAPS_pubmethodSetFocus()

Sets the focus on the control.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventClick

Raises this event when the control is clicked.

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: