_DTE.CommandBars 属性

定义

获取对开发环境的命令栏的引用。

public:
 property System::Object ^ CommandBars { System::Object ^ get(); };
public:
 property Platform::Object ^ CommandBars { Platform::Object ^ get(); };
[System.Runtime.InteropServices.DispId(108)]
public object CommandBars { [System.Runtime.InteropServices.DispId(108)] get; }
[<System.Runtime.InteropServices.DispId(108)>]
[<get: System.Runtime.InteropServices.DispId(108)>]
member this.CommandBars : obj
Public ReadOnly Property CommandBars As Object

属性值

Object

CommandBars 对象。

属性

示例

Sub CommandBarsExample()  
  MsgBox(DTE.CommandBars.Count)  
End Sub  

注解

此类是命名空间的一部分 Microsoft.VisualStudio.CommandBars

可以通过调用向此集合中添加或删除命令栏 AddCommandBar 。 有关命令栏的详细信息,请参阅此方法的文档。

适用于