ListBox.ObjectCollection コンストラクター

定義

ListBox.ObjectCollectionの新しいインスタンスを初期化します。

オーバーロード

名前 説明
ListBox.ObjectCollection(ListBox)

ListBox.ObjectCollectionの新しいインスタンスを初期化します。

ListBox.ObjectCollection(ListBox, Object[])

オブジェクトの配列を含む ListBox.ObjectCollection の新しいインスタンスを初期化します。

ListBox.ObjectCollection(ListBox, ListBox+ObjectCollection)

別のListBox.ObjectCollectionに基づいて、ListBox.ObjectCollectionの新しいインスタンスを初期化します。

ListBox.ObjectCollection(ListBox)

ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs

ListBox.ObjectCollectionの新しいインスタンスを初期化します。

public:
 ObjectCollection(System::Windows::Forms::ListBox ^ owner);
public ObjectCollection(System.Windows.Forms.ListBox owner);
new System.Windows.Forms.ListBox.ObjectCollection : System.Windows.Forms.ListBox -> System.Windows.Forms.ListBox.ObjectCollection
Public Sub New (owner As ListBox)

パラメーター

owner
ListBox

コレクションを所有する ListBox

例外

.NET 5 以降: ownernull

注釈

このクラスのインスタンスは、 ListBox コントロールに関連付けなければ作成できません。

適用対象

ListBox.ObjectCollection(ListBox, Object[])

ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs

オブジェクトの配列を含む ListBox.ObjectCollection の新しいインスタンスを初期化します。

public:
 ObjectCollection(System::Windows::Forms::ListBox ^ owner, cli::array <System::Object ^> ^ value);
public ObjectCollection(System.Windows.Forms.ListBox owner, object[] value);
new System.Windows.Forms.ListBox.ObjectCollection : System.Windows.Forms.ListBox * obj[] -> System.Windows.Forms.ListBox.ObjectCollection
Public Sub New (owner As ListBox, value As Object())

パラメーター

owner
ListBox

コレクションを所有する ListBox

value
Object[]

コレクションに追加するオブジェクトの配列。

例外

.NET 5 以降: owner または valuenull です。

注釈

このクラスのインスタンスは、 ListBox コントロールに関連付けなければ作成できません。

適用対象

ListBox.ObjectCollection(ListBox, ListBox+ObjectCollection)

ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs
ソース:
ListBox.ObjectCollection.cs

別のListBox.ObjectCollectionに基づいて、ListBox.ObjectCollectionの新しいインスタンスを初期化します。

public:
 ObjectCollection(System::Windows::Forms::ListBox ^ owner, System::Windows::Forms::ListBox::ObjectCollection ^ value);
public ObjectCollection(System.Windows.Forms.ListBox owner, System.Windows.Forms.ListBox.ObjectCollection value);
new System.Windows.Forms.ListBox.ObjectCollection : System.Windows.Forms.ListBox * System.Windows.Forms.ListBox.ObjectCollection -> System.Windows.Forms.ListBox.ObjectCollection
Public Sub New (owner As ListBox, value As ListBox.ObjectCollection)

パラメーター

owner
ListBox

コレクションを所有する ListBox

value
ListBox.ObjectCollection

コンテンツがこのコレクションにコピーされる ListBox.ObjectCollection

例外

.NET 5 以降: owner または valuenull です。

注釈

このクラスのインスタンスは、 ListBox コントロールに関連付けなければ作成できません。 このバージョンのコンストラクターを使用すると、 ListBox.ObjectCollection クラスの既存のインスタンスで指定された項目を使用して、作成時にコレクションに項目を追加できます。 このコンストラクターを使用して、このコレクションで別の ListBox コントロールで指定された項目を使用できます。

適用対象