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

適用於