ListViewGroupCollection.Count 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得集合中群組的數量。
public:
property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer
屬性值
收藏中的群組數量。
實作
備註
利用此特性來決定集合中的群組數量。 當你需要在集合中迴圈並對每個群組執行相同操作時,這非常有用。 你也可以用 IEnumerator return by the GetEnumerator method 來遍歷集合。