HtmlTable.GetRow 方法

获取行依据行索引。

命名空间:  Microsoft.VisualStudio.TestTools.UITesting.HtmlControls
程序集:   Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting(在 Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll 中)

语法

声明
Public Function GetRow ( _
    rowIndex As Integer _
) As HtmlControl
public HtmlControl GetRow(
    int rowIndex
)
public:
HtmlControl^ GetRow(
    int rowIndex
)
member GetRow : 
        rowIndex:int -> HtmlControl
public function GetRow(
    rowIndex : int
) : HtmlControl

参数

  • rowIndex
    类型:Int32

    从 0 开始的行索引。

返回值

类型:Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlControl
行对象。

备注

示例:获取第三行。 请注意索引是基于为 0。

HtmlControl 行 myTable.GetRow (= 2);

.NET Framework 安全性

请参阅

参考

HtmlTable 类

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