共用方式為


WpfTable.GetRow 方法

取得資料列會根據資料列索引。

命名空間:  Microsoft.VisualStudio.TestTools.UITesting.WpfControls
組件:  Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

語法

'宣告
Public Function GetRow ( _
    rowIndex As Integer _
) As WpfRow
public WpfRow GetRow(
    int rowIndex
)
public:
WpfRow^ GetRow(
    int rowIndex
)
member GetRow : 
        rowIndex:int -> WpfRow 
public function GetRow(
    rowIndex : int
) : WpfRow

參數

  • rowIndex
    型別:System.Int32
    以 0 起始的資料列索引。

傳回值

型別:Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfRow
資料列物件。

備註

範例-取得第三個資料列。 請注意索引以 0。

WpfRow 執行 myTable.GetRow (= 2),

.NET Framework 安全性

請參閱

參考

WpfTable 類別

Microsoft.VisualStudio.TestTools.UITesting.WpfControls 命名空間