共用方式為


WpfTable.FindFirstCellWithValue 方法

尋找包含指定值的第一個儲存格。

,因為儲存格會搜尋每行之下,呼叫可能需要大量的時間。

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

語法

'宣告
Public Function FindFirstCellWithValue ( _
    value As String _
) As WpfCell
public WpfCell FindFirstCellWithValue(
    string value
)
public:
WpfCell^ FindFirstCellWithValue(
    String^ value
)
member FindFirstCellWithValue : 
        value:string -> WpfCell 
public function FindFirstCellWithValue(
    value : String
) : WpfCell

參數

傳回值

型別:Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfCell
等於值的第一個儲存格。

備註

範例-尋找具有值「自動程式碼 UI 測試的第一個儲存格。

WpfCell 儲存格 myTable.FindFirstCellWithValue (= 「自動程式碼 UI 測試」);

.NET Framework 安全性

請參閱

參考

WpfTable 類別

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