言語

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を超えた場合、古い要素をコピーして新しい要素を追加する前に内部配列を自動的に再割り当てすることで、リストの容量が 2 倍になります。

適用対象