WpfRow.GetCell 方法

获取单元格根据单元格索引。

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

语法

声明
Public Function GetCell ( _
    cellIndex As Integer _
) As WpfCell
public WpfCell GetCell(
    int cellIndex
)
public:
WpfCell^ GetCell(
    int cellIndex
)
member GetCell : 
        cellIndex:int -> WpfCell
public function GetCell(
    cellIndex : int
) : WpfCell

参数

  • cellIndex
    类型:Int32

    在单元格的行从 0 开始的索引。

返回值

类型:Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfCell
单元格对象。

备注

示例:在 2. 访问的单元格。 请注意是基于索引的 0。

WpfCell 单元格 (= myRow.GetCell 2);

.NET Framework 安全性

请参阅

参考

WpfRow 类

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