共用方式為


WinTable.GetCell 方法

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

命名空間:  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
    類型:Int32

    儲存格的以 0 起始的行索引。

  • columnIndex
    類型:Int32

    儲存格的以 0 起始的行索引。

傳回值

類型:Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinCell
儲存格的物件。

備註

範例:在 2, 5. 的取得儲存格。 請注意索引是以 0。

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

.NET Framework 安全性

請參閱

參考

WinTable 類別

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