Compartir a través de


WpfRow.GetCell Method

Gets the cell based on the cell index.

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

Parameters

  • cellIndex
    Type: Int32

    The 0-based index in the row of the cell.

Return Value

Type: Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfCell
The cell object.

Remarks

Example: Get cell at 2. Note that index is 0 based.

WpfCell cell = myRow.GetCell(2);

.NET Framework Security

See Also

Reference

WpfRow Class

Microsoft.VisualStudio.TestTools.UITesting.WpfControls Namespace