ListBox.ObjectCollection Konstruktorer

Definition

Initierar en ny instans av ListBox.ObjectCollection.

Överlagringar

Name Description
ListBox.ObjectCollection(ListBox)

Initierar en ny instans av ListBox.ObjectCollection.

ListBox.ObjectCollection(ListBox, Object[])

Initierar en ny instans av ListBox.ObjectCollection som innehåller en matris med objekt.

ListBox.ObjectCollection(ListBox, ListBox+ObjectCollection)

Initierar en ny instans av ListBox.ObjectCollection baserat på en annan ListBox.ObjectCollection.

ListBox.ObjectCollection(ListBox)

Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs

Initierar en ny instans av 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)

Parametrar

owner
ListBox

Den ListBox som äger samlingen.

Undantag

.NET 5 och senare: owner är null.

Kommentarer

Du kan inte skapa en instans av den här klassen utan att associera den med en ListBox kontroll.

Gäller för

ListBox.ObjectCollection(ListBox, Object[])

Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs

Initierar en ny instans av ListBox.ObjectCollection som innehåller en matris med objekt.

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

Parametrar

owner
ListBox

Den ListBox som äger samlingen.

value
Object[]

En matris med objekt som ska läggas till i samlingen.

Undantag

.NET 5 och senare: Antingen owner eller value är null.

Kommentarer

Du kan inte skapa en instans av den här klassen utan att associera den med en ListBox kontroll.

Gäller för

ListBox.ObjectCollection(ListBox, ListBox+ObjectCollection)

Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs
Källa:
ListBox.ObjectCollection.cs

Initierar en ny instans av ListBox.ObjectCollection baserat på en annan 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)

Parametrar

owner
ListBox

Den ListBox som äger samlingen.

value
ListBox.ObjectCollection

En ListBox.ObjectCollection som innehållet kopieras från till den här samlingen.

Undantag

.NET 5 och senare: Antingen owner eller value är null.

Kommentarer

Du kan inte skapa en instans av den här klassen utan att associera den med en ListBox kontroll. Med den här versionen av konstruktorn kan du använda de objekt som anges i en befintlig instans av ListBox.ObjectCollection klassen för att lägga till objekt i samlingen när den skapas. Du kan använda den här konstruktorn för att använda de objekt som anges i en annan ListBox kontroll med den här samlingen.

Gäller för