言語

ToolboxItemCollection コンストラクター

定義

ToolboxItemCollection クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
ToolboxItemCollection(ToolboxItem[])

ツールボックス項目の指定した配列を使用して、 ToolboxItemCollection クラスの新しいインスタンスを初期化します。

ToolboxItemCollection(ToolboxItemCollection)

指定したコレクションを使用して、 ToolboxItemCollection クラスの新しいインスタンスを初期化します。

ToolboxItemCollection(ToolboxItem[])

ソース:
ToolboxItemCollection.cs
ソース:
ToolboxItemCollection.cs
ソース:
ToolboxItemCollection.cs
ソース:
ToolboxItemCollection.cs
ソース:
ToolboxItemCollection.cs

ツールボックス項目の指定した配列を使用して、 ToolboxItemCollection クラスの新しいインスタンスを初期化します。

public:
 ToolboxItemCollection(cli::array <System::Drawing::Design::ToolboxItem ^> ^ value);
public ToolboxItemCollection(System.Drawing.Design.ToolboxItem[] value);
new System.Drawing.Design.ToolboxItemCollection : System.Drawing.Design.ToolboxItem[] -> System.Drawing.Design.ToolboxItemCollection
Public Sub New (value As ToolboxItem())

パラメーター

value
ToolboxItem[]

コレクションに格納するツールボックス項目を含む ToolboxItem 型の配列。

次のコード例では、ToolboxItemCollection オブジェクトの配列を使用して初期化された新しいToolboxItem インスタンスを作成する方法を示します。

// Create a new ToolboxItemCollection using a ToolboxItem array.
array<ToolboxItem^>^temp0 = {gcnew ToolboxItem( System::Windows::Forms::Label::typeid ),gcnew ToolboxItem( System::Windows::Forms::TextBox::typeid )};
ToolboxItemCollection^ collection = gcnew ToolboxItemCollection( temp0 );
// Create a new ToolboxItemCollection using a ToolboxItem array.
ToolboxItemCollection collection = 
    new ToolboxItemCollection( new ToolboxItem[] { 
        new ToolboxItem(typeof(System.Windows.Forms.Label)),
        new ToolboxItem(typeof(System.Windows.Forms.TextBox)) } );
' Create a new ToolboxItemCollection using a ToolboxItem array.
Dim collection As New ToolboxItemCollection(New ToolboxItem() _
 {New ToolboxItem(GetType(System.Windows.Forms.Label)), _
  New ToolboxItem(GetType(System.Windows.Forms.TextBox))})

適用対象

ToolboxItemCollection(ToolboxItemCollection)

ソース:
ToolboxItemCollection.cs
ソース:
ToolboxItemCollection.cs
ソース:
ToolboxItemCollection.cs
ソース:
ToolboxItemCollection.cs
ソース:
ToolboxItemCollection.cs

指定したコレクションを使用して、 ToolboxItemCollection クラスの新しいインスタンスを初期化します。

public:
 ToolboxItemCollection(System::Drawing::Design::ToolboxItemCollection ^ value);
public ToolboxItemCollection(System.Drawing.Design.ToolboxItemCollection value);
new System.Drawing.Design.ToolboxItemCollection : System.Drawing.Design.ToolboxItemCollection -> System.Drawing.Design.ToolboxItemCollection
Public Sub New (value As ToolboxItemCollection)

パラメーター

value
ToolboxItemCollection

新しいコレクションに格納する ToolboxItemCollection

次のコード例では、別のToolboxItemCollectionを使用して初期化された新しいToolboxItemCollection インスタンスを作成する方法を示します。

// Create a new ToolboxItemCollection using an existing ToolboxItemCollection.
ToolboxItemCollection^ coll = gcnew ToolboxItemCollection( collection );
// Create a new ToolboxItemCollection using an existing ToolboxItemCollection.
ToolboxItemCollection coll =
    new ToolboxItemCollection( collection );
' Creates a new ToolboxItemCollection using an existing ToolboxItemCollection.
Dim coll As New ToolboxItemCollection(collection)

適用対象