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

适用于