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
型別:System.Int32
儲存格以 0 起始的資料列索引。
- columnIndex
型別:System.Int32
儲存格以 0 起始的資料行索引。
傳回值
型別:Microsoft.VisualStudio.TestTools.UITesting.WinControls.WinCell
儲存格的物件。
備註
範例:取得儲存格在 2, 5。請注意索引以 0。
WinCell 儲存格= myTable.GetCell (2, 5),
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。