HtmlTable.GetCell 方法

取得儲存格的資料列和資料行索引。

傳回的物件可以是 HtmlCell 或 HtmlHeaderCell。

命名空間:  Microsoft.VisualStudio.TestTools.UITesting.HtmlControls
組件:  Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

語法

'宣告
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

參數

  • rowIndex
    型別:System.Int32
    儲存格以 0 起始的資料列索引。
  • columnIndex
    型別:System.Int32
    儲存格以 0 起始的資料行索引。

傳回值

型別:Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlControl
儲存格的物件。

備註

範例:取得儲存格在 2, 5。請注意索引以 0。

HtmlControl 儲存格= myTable.GetCell (2, 5),

.NET Framework 安全性

請參閱

參考

HtmlTable 類別

Microsoft.VisualStudio.TestTools.UITesting.HtmlControls 命名空間