DataGridRow.GetIndex 方法

定義

傳回 ItemsDataGrid 集合中,資料列之資料項目的索引。

public:
 int GetIndex();
public int GetIndex ();
member this.GetIndex : unit -> int
Public Function GetIndex () As Integer

傳回

Int32

資料列之資料項目的索引;如果找不到此項目,則為 -1。

適用於

另請參閱