VisualCollection.Count 屬性

定義

取得集合中的項目數。

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

屬性值

VisualCollection 所含的項目數目。

實作

備註

Count 是 實際在 中的 VisualCollection 專案數目。 Capacity 是 能夠儲存的專案 VisualCollection 數目。

Count 一律小於或等於 Capacity 。 如果在 Count 新增元素時超過 Capacity ,清單的容量會藉由在複製舊元素並新增新元素之前自動重新配置內部陣列來加倍。

適用於