Freigeben über


HtmlTable.GetCell-Methode

Ruft die Zelle auf Grundlage die Zeilen- und Spaltenindizes ab.

Das zurückgegebene Objekt konnte HtmlCell oder HtmlHeaderCell sein.

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 GetCell ( _
    rowIndex As Integer, _
    columnIndex As Integer _
) As HtmlControl
public HtmlControl GetCell(
    int rowIndex,
    int columnIndex
)
public:
HtmlControl^ GetCell(
    int rowIndex, 
    int columnIndex
)
member GetCell : 
        rowIndex:int * 
        columnIndex:int -> HtmlControl
public function GetCell(
    rowIndex : int, 
    columnIndex : int
) : HtmlControl

Parameter

  • rowIndex
    Typ: Int32

    Im 0 basierende Zeilenindex der Zelle.

  • columnIndex
    Typ: Int32

    Im 0 basierende Spaltenindex der Zelle.

Rückgabewert

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

Hinweise

Beispiel: Rufen Sie Zelle bei 2, 5. ab. Beachten Sie, dass Index 0 basiert ist.

HtmlControl-Zelle = myTable.GetCell (2, 5);

.NET Framework-Sicherheit

Siehe auch

Referenz

HtmlTable Klasse

Microsoft.VisualStudio.TestTools.UITesting.HtmlControls-Namespace