获取单元格根据单元格索引。
命名空间: 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 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
参数
cellIndex
类型:Int32在单元格的行从 0 开始的索引。
返回值
类型:Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlCell
单元格对象。
备注
示例:在 2. 访问的单元格。 请注意是基于索引的 0。
HtmlCell 单元格 (= myRow.GetCell 2);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。
请参阅
参考
Microsoft.VisualStudio.TestTools.UITesting.HtmlControls 命名空间