CommandBarButton 接口

定义

表示命令栏按钮。

public interface class CommandBarButton : Microsoft::VisualStudio::CommandBars::_CommandBarButton, Microsoft::VisualStudio::CommandBars::_CommandBarButtonEvents_Event
public interface class CommandBarButton : Microsoft::VisualStudio::CommandBars::_CommandBarButton, Microsoft::VisualStudio::CommandBars::_CommandBarButtonEvents_Event
__interface CommandBarButton : Microsoft::VisualStudio::CommandBars::_CommandBarButton, Microsoft::VisualStudio::CommandBars::_CommandBarButtonEvents_Event
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.VisualStudio.CommandBars.CommandBarButtonClass))]
[System.Runtime.InteropServices.Guid("E11C7CE2-8641-4183-9458-309C6A201CDD")]
public interface CommandBarButton : Microsoft.VisualStudio.CommandBars._CommandBarButton, Microsoft.VisualStudio.CommandBars._CommandBarButtonEvents_Event
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.VisualStudio.CommandBars.CommandBarButtonClass))>]
[<System.Runtime.InteropServices.Guid("E11C7CE2-8641-4183-9458-309C6A201CDD")>]
type CommandBarButton = interface
    interface _CommandBarButton
    interface _CommandBarButtonEvents_Event
Public Interface CommandBarButton
Implements _CommandBarButton, _CommandBarButtonEvents_Event
派生
属性
实现

注解

_CommandBarButton仅用于 CommandBarControl 定义无事件的实现。 CommandBarButton同时实现 _CommandBarButton_CommandBarButtonEvents_EventCommandBarButtonClass 实现所有三个接口。

属性

accChild[Object] (继承自 IAccessible)
accChildCount

获取子级的数目。 此属性已弃用。

(继承自 IAccessible)
accDefaultAction[Object]

获取默认操作。 此属性已弃用。

(继承自 IAccessible)
accDescription[Object]

获取说明。 此属性已弃用。

(继承自 IAccessible)
accFocus

获取焦点。 此属性已弃用。

(继承自 IAccessible)
accHelp[Object]

获取帮助字符串。 此属性已弃用。

(继承自 IAccessible)
accHelpTopic[String, Object]

获取帮助主题。 此属性已弃用。

(继承自 IAccessible)
accKeyboardShortcut[Object]

获取键盘快捷方式。 此属性已弃用。

(继承自 IAccessible)
accName[Object]

获取对象的名称。

(继承自 IAccessible)
accParent

获取父。 此属性已弃用。

(继承自 IAccessible)
accRole[Object]

获取角色。 此属性已弃用。

(继承自 IAccessible)
accSelection

获取选定内容。 此属性已弃用。

(继承自 IAccessible)
accState[Object]

获取状态。 此属性已弃用。

(继承自 IAccessible)
accValue[Object]

获取值。 此属性已弃用。

(继承自 IAccessible)
Application

获取 DTE 对象。

(继承自 CommandBarControl)
BeginGroup

确定此控件是否为其组中的第一个。

(继承自 CommandBarControl)
BuiltIn

确定此控件是否为自定义控件或内置控件。

(继承自 CommandBarControl)
BuiltInFace

内置映像。 此属性已弃用。

(继承自 _CommandBarButton)
Caption

获取或设置控件的标题。

(继承自 CommandBarControl)
Control

获取控件本身。

(继承自 CommandBarControl)
Creator

获取应用程序的 ID。

(继承自 CommandBarControl)
DescriptionText

始终返回空字符串。

(继承自 CommandBarControl)
Enabled

确定是否已启用控件。

(继承自 CommandBarControl)
FaceId

此属性已弃用。

(继承自 _CommandBarButton)
Height

获取或设置控件的高度。

(继承自 CommandBarControl)
HelpContextId

获取帮助上下文 ID。 始终返回 0。

(继承自 CommandBarControl)
HelpFile

始终返回空字符串。

(继承自 CommandBarControl)
HyperlinkType

获取超链接类型。 此属性已弃用。

(继承自 _CommandBarButton)
Id

获取控件的 ID。

(继承自 CommandBarControl)
Index

获取此控件在命令栏上的一组控件中的索引。

(继承自 CommandBarControl)
InstanceId

获取此控件的实例 ID。

(继承自 CommandBarControl)
IsPriorityDropped

始终返回 false

(继承自 CommandBarControl)
Left

获取左坐标。 此属性已弃用。

(继承自 CommandBarControl)
Mask

获取掩码。 此属性已弃用。

(继承自 _CommandBarButton)
OLEUsage

获取或设置 OLE 使用情况。 此属性已弃用。

(继承自 CommandBarControl)
OnAction

获取或设置 OnAction 字符串。

(继承自 CommandBarControl)
Parameter

获取或设置与命令一起使用的参数。

(继承自 CommandBarControl)
Parent

获取父命令栏。

(继承自 CommandBarControl)
Picture

获取或设置在按钮上显示的图标。

(继承自 _CommandBarButton)
Priority

获取优先级。 始终返回1。

(继承自 CommandBarControl)
ShortcutText

获取或设置快捷方式文本。 此属性已弃用。

(继承自 _CommandBarButton)
State

获取或设置状态。 此属性已弃用。

(继承自 _CommandBarButton)
Style

获取或设置按钮样式。

(继承自 _CommandBarButton)
Tag

获取或设置标记

(继承自 CommandBarControl)
TooltipText

获取或设置工具提示文本。

(继承自 CommandBarControl)
Top

获取顶部。 此属性已弃用。

(继承自 CommandBarControl)
Type

获取控件的类型。

(继承自 CommandBarControl)
Visible

确定此控件是否可见。

(继承自 CommandBarControl)
Width

获取或设置控件的宽度。

(继承自 CommandBarControl)

方法

accDoDefaultAction(Object)

执行默认操作。

(继承自 IAccessible)
accHitTest(Int32, Int32)

获取指定坐标处的对象。 不推荐使用此方法。

(继承自 IAccessible)
accLocation(Int32, Int32, Int32, Int32, Object)

获取控件的位置。 不推荐使用此方法。

(继承自 IAccessible)
accNavigate(Int32, Object)

定位到另一个对象。 不推荐使用此方法。

(继承自 IAccessible)
accSelect(Int32, Object)

选择对象。 不推荐使用此方法。

(继承自 IAccessible)
add_Click(_CommandBarButtonEvents_ClickEventHandler) (继承自 _CommandBarButtonEvents_Event)
Copy(Object, Object)

将此控件复制到指定命令栏上的指定位置。

(继承自 CommandBarControl)
CopyFace()

复制映像。 不推荐使用此方法。

(继承自 _CommandBarButton)
Delete(Object)

从集合中删除此控件。

(继承自 CommandBarControl)
Execute()

执行此控件的操作。

(继承自 CommandBarControl)
Move(Object, Object)

将此控件移动到指定位置处的指定命令栏。

(继承自 CommandBarControl)
PasteFace()

粘贴图像。 不推荐使用此方法。

(继承自 _CommandBarButton)
remove_Click(_CommandBarButtonEvents_ClickEventHandler) (继承自 _CommandBarButtonEvents_Event)
Reserved1()

保留。

(继承自 CommandBarControl)
Reserved2()

保留。

(继承自 CommandBarControl)
Reserved3()

保留。

(继承自 CommandBarControl)
Reserved4()

保留。

(继承自 CommandBarControl)
Reserved5()

保留。

(继承自 CommandBarControl)
Reserved6()

保留。

(继承自 CommandBarControl)
Reserved7()

保留。

(继承自 CommandBarControl)
Reset()

重置控件。

(继承自 CommandBarControl)
SetFocus()

在控件上设置焦点。

(继承自 CommandBarControl)

事件

Click

Click 事件。 仅限 Microsoft 内部使用。

(继承自 _CommandBarButtonEvents_Event)

适用于