共用方式為


ListView.ColumnHeaderCollection.Count 屬性

定義

會取得收藏中的物品數量。

public:
 property int Count { int get(); };
[System.ComponentModel.Browsable(false)]
public int Count { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Count : int
Public ReadOnly Property Count As Integer

屬性值

收藏品數量。

實作

屬性

備註

這個屬性讓你能判斷當屬性View設為 Details時,顯示的ListView欄位數量。 當你在循環集合的值時,可以使用這個值,並且需要提供多次迭代來執行迴圈。

適用於

另請參閱