DesignerCollection.Count 屬性

定義

會知道系列中設計師的數量。

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

屬性值

系列設計師的數量。

實作

範例

以下程式碼範例會顯示集合中的元素數量。

// 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

適用於