CommandBars 接口

表示一组命令栏。

命名空间:  Microsoft.VisualStudio.CommandBars
程序集:  Microsoft.VisualStudio.CommandBars(在 Microsoft.VisualStudio.CommandBars.dll 中)

语法

声明
<GuidAttribute("83D31B2E-9990-4275-AE39-77D1FB5BBCD9")> _
Public Interface CommandBars _
    Inherits _CommandBars, _CommandBarsEvents_Event
[GuidAttribute("83D31B2E-9990-4275-AE39-77D1FB5BBCD9")]
public interface CommandBars : _CommandBars, 
    _CommandBarsEvents_Event

CommandBars 类型公开以下成员。

属性

  名称 说明
公共属性 ActionControl 获取 OnAction 事件启动程序当前正在运行的 CommandBarControl 。 (继承自 _CommandBars。)
公共属性 ActiveMenuBar 获取当前处于活动状态的菜单栏。 (继承自 _CommandBars。)
公共属性 AdaptiveMenus 确定设置控件的用法取决于。始终返回 false。 (继承自 _CommandBars。)
公共属性 Application 获取 DTE 对象。 (继承自 _CommandBars。)
公共属性 Count 获取的 CommandBars 对象数。包含。 (继承自 _CommandBars。)
公共属性 Creator 获取应用程序的 ID。 (继承自 _CommandBars。)
公共属性 DisableAskAQuestionDropdown 确定下拉列表 AskAQuestion 是否禁用。始终返回 true。 (继承自 _CommandBars。)
公共属性 DisableCustomize 确定用户可自定义是否已禁用。 (继承自 _CommandBars。)
公共属性 DisplayFonts 确定在下拉的字体的字体名是否显示具有该名称字体。始终返回 false。 (继承自 _CommandBars。)
公共属性 DisplayKeysInTooltips 确定键绑定是否在工具提示中。始终返回 true。 (继承自 _CommandBars。)
公共属性 DisplayTooltips 定位工具提示是否为命令栏控件中显示。始终返回 true。 (继承自 _CommandBars。)
公共属性 IdsString 此属性已被否决。 (继承自 _CommandBars。)
公共属性 Item 获取与给定名称或索引的命令栏。 (继承自 _CommandBars。)
公共属性 LargeButtons 确定大按钮是否在命令栏显示。始终返回 false。 (继承自 _CommandBars。)
公共属性 MenuAnimationStyle 获取或设置要使用的动画样式,在菜单上显示时。始终返回 msoMenuAnimationNone。 (继承自 _CommandBars。)
公共属性 Parent 获取此命令栏的父级,是 DTE 对象。 (继承自 _CommandBars。)
公共属性 TmcGetName 此方法已被否决。 (继承自 _CommandBars。)

页首

方法

  名称 说明
公共方法 Add 添加一个命令栏。 (继承自 _CommandBars。)
公共方法 add_OnUpdate (继承自 _CommandBarsEvents_Event。)
公共方法 AddEx 添加一个命令栏,包括其保护级别。 (继承自 _CommandBars。)
公共方法 FindControl 查找具有指定特性的命令栏控件。 (继承自 _CommandBars。)
公共方法 FindControls 查找满足特定条件的所有命令栏控件。 (继承自 _CommandBars。)
公共方法 GetEnumerator() 获取此集合的枚举数。 (继承自 _CommandBars。)
公共方法 ReleaseFocus ,则在菜单或工具栏,释放焦点。 (继承自 _CommandBars。)
公共方法 remove_OnUpdate (继承自 _CommandBarsEvents_Event。)

页首

事件

  名称 说明
公共事件 OnUpdate 引发事件,这 CommandBars 对象更新。此事件已弃用。 (继承自 _CommandBarsEvents_Event。)

页首

请参见

参考

Microsoft.VisualStudio.CommandBars 命名空间