获取单元格基于行和列索引。
命名空间: Microsoft.VisualStudio.TestTools.UITesting.WinControls
程序集: Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
语法
声明
Public Function GetCell ( _
rowIndex As Integer, _
columnIndex As Integer _
) As WinCell
public WinCell GetCell(
int rowIndex,
int columnIndex
)
public:
WinCell^ GetCell(
int rowIndex,
int columnIndex
)
member GetCell :
rowIndex:int *
columnIndex:int -> WinCell
public function GetCell(
rowIndex : int,
columnIndex : int
) : WinCell
参数
- rowIndex
类型:System.Int32
单元格的从0开始的行索引。
- columnIndex
类型:System.Int32
单元格的从0开始的列索引。
返回值
类型:Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinCell
单元格对象。
备注
示例:在2,5.获取单元格。请注意索引是基于为0。
WinCell单元格= myTable.GetCell (2,5);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。