Freigeben über


WpfRow.GetCell-Methode

Ruft die Zelle auf dem Zellenindex ab.

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

Syntax

'Declaration
Public Function GetCell ( _
    cellIndex As Integer _
) As WpfCell
public WpfCell GetCell(
    int cellIndex
)
public:
WpfCell^ GetCell(
    int cellIndex
)
member GetCell : 
        cellIndex:int -> WpfCell
public function GetCell(
    cellIndex : int
) : WpfCell

Parameter

  • cellIndex
    Typ: Int32

    Im 0 basierende Index in der Zeile der Zelle.

Rückgabewert

Typ: Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfCell
Das Zellenobjekt.

Hinweise

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

WpfCell-Zelle = myRow.GetCell (2);

.NET Framework-Sicherheit

Siehe auch

Referenz

WpfRow Klasse

Microsoft.VisualStudio.TestTools.UITesting.WpfControls-Namespace