Bahasa

ListBox.ObjectCollection Konstruktor

Definisi

Menginisialisasi instans baru .ListBox.ObjectCollection

Overload

Nama Deskripsi
ListBox.ObjectCollection(ListBox)

Menginisialisasi instans baru .ListBox.ObjectCollection

ListBox.ObjectCollection(ListBox, Object[])

Menginisialisasi instans ListBox.ObjectCollection baru yang berisi array objek.

ListBox.ObjectCollection(ListBox, ListBox+ObjectCollection)

Menginisialisasi instans ListBox.ObjectCollection baru berdasarkan instans lain ListBox.ObjectCollection.

ListBox.ObjectCollection(ListBox)

Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs

Menginisialisasi instans baru .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

Yang ListBox memiliki koleksi.

Pengecualian

.NET 5 dan yang lebih baru: owner adalah null.

Keterangan

Anda tidak dapat membuat instans kelas ini tanpa mengaitkannya dengan ListBox kontrol.

Berlaku untuk

ListBox.ObjectCollection(ListBox, Object[])

Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs

Menginisialisasi instans ListBox.ObjectCollection baru yang berisi array objek.

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

Yang ListBox memiliki koleksi.

value
Object[]

Array objek untuk ditambahkan ke koleksi.

Pengecualian

.NET 5 dan yang lebih baru: Baik owner atau valuenull.

Keterangan

Anda tidak dapat membuat instans kelas ini tanpa mengaitkannya dengan ListBox kontrol.

Berlaku untuk

ListBox.ObjectCollection(ListBox, ListBox+ObjectCollection)

Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs
Sumber:
ListBox.ObjectCollection.cs

Menginisialisasi instans ListBox.ObjectCollection baru berdasarkan instans lain 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)

Parameter

owner
ListBox

Yang ListBox memiliki koleksi.

value
ListBox.ObjectCollection

Dari ListBox.ObjectCollection mana isi disalin ke koleksi ini.

Pengecualian

.NET 5 dan yang lebih baru: Baik owner atau valuenull.

Keterangan

Anda tidak dapat membuat instans kelas ini tanpa mengaitkannya dengan ListBox kontrol. Versi konstruktor ini memungkinkan Anda menggunakan item yang ditentukan dalam instans ListBox.ObjectCollection kelas yang ada untuk menambahkan item ke koleksi saat dibuat. Anda dapat menggunakan konstruktor ini untuk menggunakan item yang ditentukan dalam kontrol lain ListBox dengan koleksi ini.

Berlaku untuk