ListViewDeleteEventArgs.ItemIndex 属性

定义

获取要删除的项的索引。Gets the index of the item being deleted.

public:
 property int ItemIndex { int get(); };
public int ItemIndex { get; }
member this.ItemIndex : int
Public ReadOnly Property ItemIndex As Integer

属性值

Int32

要删除的项的索引(从零开始)。The zero-based index of the item being deleted.

注解

使用 ItemIndex 属性可确定要删除的项的索引。Use the ItemIndex property to determine the index of the item being deleted. 项索引通常用于从控件集合中检索指定的项 Items ListView ,这样您就可以访问项的属性。The item index is typically used to retrieve the specified item from the Items collection of the ListView control, which enables you to access the item's properties.

适用于

另请参阅