Share via


HtmlRow.GetCell Method

Gets the cell based on the cell index.

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

Syntax

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

Parameters

  • cellIndex
    Type: Int32

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

Return Value

Type: Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlCell
The cell object.

Remarks

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

HtmlCell cell = myRow.GetCell(2);

.NET Framework Security

See Also

Reference

HtmlRow Class

Microsoft.VisualStudio.TestTools.UITesting.HtmlControls Namespace