ToolBoxTab.ToolBoxItems プロパティ

更新 : 2007 年 11 月

ToolBoxTab に関連付けられている ToolBoxItems のコレクションを取得します。

名前空間 :  EnvDTE
アセンブリ :  EnvDTE (EnvDTE.dll 内)

構文

'宣言
ReadOnly Property ToolBoxItems As ToolBoxItems
'使用
Dim instance As ToolBoxTab
Dim value As ToolBoxItems

value = instance.ToolBoxItems
ToolBoxItems ToolBoxItems { get; }
property ToolBoxItems^ ToolBoxItems {
    ToolBoxItems^ get ();
}
function get ToolBoxItems () : ToolBoxItems

プロパティ値

型 : EnvDTE.ToolBoxItems

ToolBoxItems コレクション。

解説

ToolBoxTab には、1 つ以上の ToolBoxItem オブジェクトを含めることができます。

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

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

ToolBoxTab インターフェイス

ToolBoxTab メンバ

EnvDTE 名前空間