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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。