Udostępnij za pośrednictwem


ToolBoxTabs Interface

Contains all tabs in the Toolbox.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
<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

The ToolBoxTabs type exposes the following members.

Properties

  Name Description
Public property Count Gets a value indicating the number of objects in the collection.
Public property DTE Gets the top-level extensibility object.
Public property Parent Gets the immediate parent object of a ToolBoxTabs collection.

Top

Methods

  Name Description
Public method Add Creates a new tab in the ToolBox and adds it to the ToolBoxTabs collection.
Public method GetEnumerator Gets an enumerator for items in the collection.
Public method Item Returns an indexed member of a ToolBoxTabs collection.

Top

Examples

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

See Also

Reference

EnvDTE Namespace