ListViewItem.Index プロパティ

定義

ListView コントロール内の項目の 0 から始まるインデックスを取得します。

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.ListViewItemCollection コントロールの ListView における、項目の 0 から始まるインデックス。項目が ListView コントロールに関連付けられていない場合は -1。

属性

注釈

このプロパティを使用すると、項目が コントロールに関連付 ListView けられているかどうかを判断したり、 内 ListView.ListViewItemCollection での位置を ListView判断したりできます。

適用対象