Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ListViewItem.IndexListViewプロパティは、コントロール内の項目のゼロから始まるインデックスを取得します。ListViewGroupここで、コントロール全体ではなく、特定のアイテムのインデックスが必要です。出来ますか?
ListViewItem.Index
ListView
ListViewGroup
グループ内でそのインデックスを見つけることができます:
ListViewItem item = /* certain item in a ListviewGroup */; var index = item.Group.Items.IndexOf(item);