語言

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。

適用於