ListBox.ObjectCollection Konstruktoren

Definition

Initialisiert eine neue instance von ListBox.ObjectCollection.

Überlädt

Name Beschreibung
ListBox.ObjectCollection(ListBox)

Initialisiert eine neue instance von ListBox.ObjectCollection.

ListBox.ObjectCollection(ListBox, Object[])

Initialisiert eine neue Instanz, die ListBox.ObjectCollection ein Array von Objekten enthält.

ListBox.ObjectCollection(ListBox, ListBox+ObjectCollection)

Initialisiert eine neue Instanz, die ListBox.ObjectCollection auf einer anderen ListBox.ObjectCollectionbasiert.

ListBox.ObjectCollection(ListBox)

Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs

Initialisiert eine neue instance von 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)

Parameter

owner
ListBox

Der ListBox Besitzer der Sammlung.

Ausnahmen

.NET 5 und höher: owner ist null.

Hinweise

Sie können keine Instanz dieser Klasse erstellen, ohne sie einem ListBox Steuerelement zuzuordnen.

Gilt für:

ListBox.ObjectCollection(ListBox, Object[])

Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs

Initialisiert eine neue Instanz, die ListBox.ObjectCollection ein Array von Objekten enthält.

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())

Parameter

owner
ListBox

Der ListBox Besitzer der Sammlung.

value
Object[]

Ein Array von Objekten, die der Auflistung hinzugefügt werden sollen.

Ausnahmen

.NET 5 und höher: Entweder owner oder value ist null.

Hinweise

Sie können keine Instanz dieser Klasse erstellen, ohne sie einem ListBox Steuerelement zuzuordnen.

Gilt für:

ListBox.ObjectCollection(ListBox, ListBox+ObjectCollection)

Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs
Quelle:
ListBox.ObjectCollection.cs

Initialisiert eine neue Instanz, die ListBox.ObjectCollection auf einer anderen ListBox.ObjectCollectionbasiert.

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)

Parameter

owner
ListBox

Der ListBox Besitzer der Sammlung.

value
ListBox.ObjectCollection

A ListBox.ObjectCollection from which the contents are copied to this collection.

Ausnahmen

.NET 5 und höher: Entweder owner oder value ist null.

Hinweise

Sie können keine Instanz dieser Klasse erstellen, ohne sie einem ListBox Steuerelement zuzuordnen. Mit dieser Version des Konstruktors können Sie die in einer vorhandenen Instanz der ListBox.ObjectCollection Klasse angegebenen Elemente verwenden, um der Auflistung Elemente hinzuzufügen, wenn sie erstellt werden. Mit diesem Konstruktor können Sie die in einem anderen ListBox Steuerelement angegebenen Elemente mit dieser Auflistung verwenden.

Gilt für: