VisualCollection.Count プロパティ

定義

コレクション内の要素の数を取得します。

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

プロパティ値

Int32

VisualCollection に格納されている要素の数。

実装

注釈

Count は、実際に 内にある要素の数です VisualCollectionCapacity は、格納できる要素 VisualCollection の数です。

Count は常に次の値以下 Capacityです。 要素のCapacity追加中に超過した場合Count、古い要素をコピーして新しい要素を追加する前に内部配列を自動的に再割り当てすることで、リストの容量が 2 倍になります。

適用対象