Condividi tramite


Proprietà ToolBoxTab2.ToolBoxItems

Ottiene la raccolta di oggetti ToolBoxItems associati a ToolBoxTab.

Spazio dei nomi:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Sintassi

'Dichiarazione
ReadOnly Property ToolBoxItems As ToolBoxItems
ToolBoxItems ToolBoxItems { get; }
property ToolBoxItems^ ToolBoxItems {
    ToolBoxItems^ get ();
}
abstract ToolBoxItems : ToolBoxItems with get
function get ToolBoxItems () : ToolBoxItems

Valore proprietà

Tipo: ToolBoxItems
Raccolta ToolBoxItems.

Note

Un oggetto ToolBoxTab può contenere uno o più oggetti ToolBoxItem.

Esempi

Sub ToolBoxAddExample()
    ' 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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ToolBoxTab2 Interfaccia

Spazio dei nomi EnvDTE80