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.ListViewItemCollectionListView内での位置を判断したりすることができます。

適用対象