共用方式為


ListViewUpdateEventArgs.ItemIndex 屬性

定義

取得要更新之資料項目的索引。

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

屬性值

Int32

要更新之資料項目的索引。

備註

ItemIndex使用 屬性來判斷包含要更新之資料項目的物件 ListViewDataItem 索引。 專案索引通常用來從 Items 控制項的 ListView 集合中擷取專案,這可讓您存取專案的屬性。

適用於

另請參閱