次の方法で共有


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 名前空間