ToolboxItemCollectionとは? わかりやすく解説

ToolboxItemCollection クラス

ツールボックス項目のコレクションを表します。

名前空間: System.Drawing.Design
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public NotInheritable Class
 ToolboxItemCollection
    Inherits ReadOnlyCollectionBase
Dim instance As ToolboxItemCollection
public sealed class ToolboxItemCollection :
 ReadOnlyCollectionBase
public ref class ToolboxItemCollection sealed
 : public ReadOnlyCollectionBase
public final class ToolboxItemCollection extends
 ReadOnlyCollectionBase
public final class ToolboxItemCollection extends
 ReadOnlyCollectionBase
継承階層継承階層
System.Object
   System.Collections.ReadOnlyCollectionBase
    System.Drawing.Design.ToolboxItemCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ToolboxItemCollection メンバ
System.Drawing.Design 名前空間

ToolboxItemCollection コンストラクタ (ToolboxItemCollection)

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

名前空間: System.Drawing.Design
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub New ( _
    value As ToolboxItemCollection _
)
Dim value As ToolboxItemCollection

Dim instance As New ToolboxItemCollection(value)
public ToolboxItemCollection (
    ToolboxItemCollection value
)
public:
ToolboxItemCollection (
    ToolboxItemCollection^ value
)
public ToolboxItemCollection (
    ToolboxItemCollection value
)
public function ToolboxItemCollection (
    value : ToolboxItemCollection
)

パラメータ

value

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

使用例使用例

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

' Creates a new ToolboxItemCollection using an existing ToolboxItemCollection.
Dim coll As New ToolboxItemCollection(collection)
// Create a new ToolboxItemCollection using an existing ToolboxItemCollection.
ToolboxItemCollection coll =
    new ToolboxItemCollection( collection );
// Create a new ToolboxItemCollection using an existing ToolboxItemCollection.
ToolboxItemCollection^ coll = gcnew ToolboxItemCollection( collection );
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ToolboxItemCollection クラス
ToolboxItemCollection メンバ
System.Drawing.Design 名前空間

ToolboxItemCollection コンストラクタ (ToolboxItem[])

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

名前空間: System.Drawing.Design
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub New ( _
    value As ToolboxItem() _
)
Dim value As ToolboxItem()

Dim instance As New ToolboxItemCollection(value)
public ToolboxItemCollection (
    ToolboxItem[] value
)
public:
ToolboxItemCollection (
    array<ToolboxItem^>^ value
)
public ToolboxItemCollection (
    ToolboxItem[] value
)
public function ToolboxItemCollection (
    value : ToolboxItem[]
)

パラメータ

value

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

使用例使用例

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

' 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))})
// 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.
array<ToolboxItem^>^temp0 = {gcnew ToolboxItem( System::Windows::Forms::Label::typeid
 ),gcnew ToolboxItem( System::Windows::Forms::TextBox::typeid )};
ToolboxItemCollection^ collection = gcnew ToolboxItemCollection( temp0 );
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ToolboxItemCollection クラス
ToolboxItemCollection メンバ
System.Drawing.Design 名前空間

ToolboxItemCollection コンストラクタ

ToolboxItemCollection クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
ToolboxItemCollection (ToolboxItem[]) 指定したツールボックス項目の配列を使用して、ToolboxItemCollection クラスの新しいインスタンスを初期化します。
ToolboxItemCollection (ToolboxItemCollection) 指定したコレクションを使用して、ToolboxItemCollection クラスの新しいインスタンスを初期化します。
参照参照

関連項目

ToolboxItemCollection クラス
ToolboxItemCollection メンバ
System.Drawing.Design 名前空間

ToolboxItemCollection プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ Count  ReadOnlyCollectionBase インスタンスに格納されている要素の数を取得します。 ( ReadOnlyCollectionBase から継承されます。)
パブリック プロパティ Item 指定したインデックス位置にある ToolboxItem を取得します。
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ InnerList  ReadOnlyCollectionBase インスタンスに格納されている要素のリストを取得します。 ( ReadOnlyCollectionBase から継承されます。)
参照参照

関連項目

ToolboxItemCollection クラス
System.Drawing.Design 名前空間

ToolboxItemCollection メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ToolboxItemCollection クラス
System.Drawing.Design 名前空間

ToolboxItemCollection メンバ

ツールボックス項目のコレクションを表します。

ToolboxItemCollection データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ToolboxItemCollection オーバーロードされます。 ToolboxItemCollection クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ Count  ReadOnlyCollectionBase インスタンスに格納されている要素の数を取得します。(ReadOnlyCollectionBase から継承されます。)
パブリック プロパティ Item 指定したインデックス位置にある ToolboxItem を取得します。
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ InnerList  ReadOnlyCollectionBase インスタンスに格納されている要素のリストを取得します。(ReadOnlyCollectionBase から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ToolboxItemCollection クラス
System.Drawing.Design 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「ToolboxItemCollection」の関連用語

ToolboxItemCollectionのお隣キーワード

   

英語⇒日本語
日本語⇒英語
   



ToolboxItemCollectionのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS