次の方法で共有


ToolBox.ToolBoxTabs Property

Definition

Gets the collection of all tabs in the ToolBox.

public:
 property EnvDTE::ToolBoxTabs ^ ToolBoxTabs { EnvDTE::ToolBoxTabs ^ get(); };
[System.Runtime.InteropServices.DispId(4)]
public EnvDTE.ToolBoxTabs ToolBoxTabs { [System.Runtime.InteropServices.DispId(4)] get; }
[<System.Runtime.InteropServices.DispId(4)>]
[<get: System.Runtime.InteropServices.DispId(4)>]
member this.ToolBoxTabs : EnvDTE.ToolBoxTabs
Public ReadOnly Property ToolBoxTabs As ToolBoxTabs

Property Value

A ToolBoxTabs collection.

Attributes

Examples

Sub ToolBoxTabsExample()  
    ' This adds a Text item to the first tab of the Toolbox.  
    ' 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  

    ' Add a new Text item to the first tab in the Toolbox.  
    tbxTabs.Item(1).ToolBoxItems.Add("New Text Item", "Some text to _  
    add to the document.", vsToolBoxItemFormat.vsToolBoxItemFormatText)  
End Sub  

Applies to