共用方式為


WpfTable.GetCell 方法

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

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

語法

'宣告
Public Function GetCell ( _
    rowIndex As Integer, _
    columnIndex As Integer _
) As WpfCell
public WpfCell GetCell(
    int rowIndex,
    int columnIndex
)
public:
WpfCell^ GetCell(
    int rowIndex, 
    int columnIndex
)
member GetCell : 
        rowIndex:int * 
        columnIndex:int -> WpfCell 
public function GetCell(
    rowIndex : int, 
    columnIndex : int
) : WpfCell

參數

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

傳回值

型別:Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfCell
儲存格的物件。

備註

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

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

.NET Framework 安全性

請參閱

參考

WpfTable 類別

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