包含**“工具箱”**中的所有选项卡。
命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)
语法
声明
<GuidAttribute("CF177B52-4F2F-42A0-8DA3-CE78679A0D2D")> _
Public Interface ToolBoxTabs _
    Inherits IEnumerable
[GuidAttribute("CF177B52-4F2F-42A0-8DA3-CE78679A0D2D")]
public interface ToolBoxTabs : IEnumerable
[GuidAttribute(L"CF177B52-4F2F-42A0-8DA3-CE78679A0D2D")]
public interface class ToolBoxTabs : IEnumerable
[<GuidAttribute("CF177B52-4F2F-42A0-8DA3-CE78679A0D2D")>]
type ToolBoxTabs =  
    interface
        interface IEnumerable
    end
public interface ToolBoxTabs extends IEnumerable
ToolBoxTabs 类型公开以下成员。
属性
| 名称 | 说明 | |
|---|---|---|
| .gif) | Count | 获取一个值,该值指示集合中对象的数目。 | 
| .gif) | DTE | 获取顶级扩展性对象。 | 
| .gif) | Parent | 获取 ToolBoxTabs 集合的直接父对象。 | 
页首
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) | Add | 在 ToolBox 中创建新选项卡,并将其添加到 ToolBoxTabs 集合。 | 
| .gif) | GetEnumerator() | 返回一个循环访问集合的枚举数。 (继承自 IEnumerable。) | 
| .gif) | GetEnumerator() | 获取集合中项的枚举数。 | 
| .gif) | Item | 返回 ToolBoxTabs 集合的一个索引成员。 | 
页首
示例
Sub ToolBoxTabsExample()
    ' Define the variables and create an object reference to the IDE's  
    ' ToolBox object.
    Dim win As Window = DTE.Windows.Item(Constants.vsWindowKindToolbox)
    Dim tlBox As ToolBox = win.Object
    Dim tbxTabs As ToolBoxTabs
    ' Create an object reference to the ToolBoxTabs object.
    tbxTabs = tlBox.ToolBoxTabs
    ' Now you can manipulate the ToolBox.
    ' List the total number of tabs in the ToolBox.
    MsgBox("Number of ToolBox tabs: " & tbxTabs.Count)
End Sub