ColumnHeader.Index 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
用這欄的控制ListView.ColumnHeaderCollection點取得位置ListView。
public:
property int Index { int get(); };
[System.ComponentModel.Browsable(false)]
public int Index { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Index : int
Public ReadOnly Property Index As Integer
屬性值
欄位標頭在所包含控制項中ListView.ColumnHeaderCollectionListView以零為基礎的索引。
- 屬性
備註
此屬性的值不一定對應於欄位標頭 ListView在 中當前的視覺位置。 這可能是因為使用者在執行時(當屬性 AllowColumnReorder 設定為 true時)重新排序欄位標頭。 若 不 ColumnHeader 包含在控制 ListView 範圍內,該屬性會回傳 -1 值。