Freigeben über


HtmlTable.GetRow-Methode

Ruft die Zeile auf dem Zeilenindex ab.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting.HtmlControls
Assemblys:   Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)

Syntax

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

Parameter

  • rowIndex
    Typ: Int32

    Der 0 basierende Zeilenindex.

Rückgabewert

Typ: Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlControl
Das Zeilenobjekt.

Hinweise

Beispiel: Rufen Sie die dritte Zeile ab. Beachten Sie, dass Index 0 basiert ist.

HtmlControl-Zeile = myTable.GetRow (2);

.NET Framework-Sicherheit

Siehe auch

Referenz

HtmlTable Klasse

Microsoft.VisualStudio.TestTools.UITesting.HtmlControls-Namespace