Share via


WinTable.GetRow Method

Gets the row based on the row index.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting.WinControls
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
Public Function GetRow ( _
    rowIndex As Integer _
) As WinRow
public WinRow GetRow(
    int rowIndex
)
public:
WinRow^ GetRow(
    int rowIndex
)
member GetRow : 
        rowIndex:int -> WinRow
public function GetRow(
    rowIndex : int
) : WinRow

Parameters

  • rowIndex
    Type: Int32

    The 0-based row index.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinRow
The row object.

Remarks

Example: Get the third row. Note that index is 0 based.

WinRow row = myTable.GetRow(2);

.NET Framework Security

See Also

Reference

WinTable Class

Microsoft.VisualStudio.TestTools.UITesting.WinControls Namespace