ListViewItem.Index Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the zero-based index of the item within the ListView control.
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
Property Value
The zero-based index of the item within the ListView.ListViewItemCollection of the ListView control, or -1 if the item is not associated with a ListView control.
- Attributes
Remarks
You can use this property to determine if the item is associated with a ListView control as well as to determine its position within the ListView.ListViewItemCollection of the ListView.
Applies to
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk