HtmlTable.GetCell Method

Gets the cell based on the row and column indices.

The object returned could be HtmlCell or HtmlHeaderCell.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting.HtmlControls
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.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

Parameters

  • rowIndex
    Type: Int32

    The 0-based row index of the cell.

  • columnIndex
    Type: Int32

    The 0-based column index of the cell.

Return Value

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

Remarks

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

HtmlControl cell = myTable.GetCell(2, 5);

.NET Framework Security

See Also

Reference

HtmlTable Class

Microsoft.VisualStudio.TestTools.UITesting.HtmlControls Namespace