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 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ToolboxItemCollection」の関連用語

ToolboxItemCollectionのお隣キーワード
検索ランキング

   

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



ToolboxItemCollectionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS