Bagikan melalui


DesignerCollection.Count Properti

Definisi

Mendapatkan jumlah desainer dalam koleksi.

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

Nilai Properti

Jumlah desainer dalam koleksi.

Penerapan

Contoh

Contoh kode berikut mendapatkan jumlah elemen dalam koleksi.

// Get the number of elements in the collection.
int count = collection->Count;
// Get the number of elements in the collection.
int count = collection.Count;
' Get the number of elements in the collection.
Dim count As Integer = collection.Count

Berlaku untuk