InputGestureCollection.IndexOf(InputGesture) 方法

定義

在這個 InputGesture 中搜尋指定之 InputGestureCollection 的第一個項目。

public:
 int IndexOf(System::Windows::Input::InputGesture ^ value);
public int IndexOf (System.Windows.Input.InputGesture value);
member this.IndexOf : System.Windows.Input.InputGesture -> int
Public Function IndexOf (value As InputGesture) As Integer

參數

value
InputGesture

要放置在集合中的筆勢。

傳回

第一個 value 項目的索引 (如果找到的話),否則為 -1。

適用於