InputGesture 類別

定義

描述輸入裝置筆勢的抽象類別。Abstract class that describes input device gestures.

public ref class InputGesture abstract
public abstract class InputGesture
type InputGesture = class
Public MustInherit Class InputGesture
繼承
InputGesture
衍生

備註

Windows Presentation Foundation 中InputGesture的執行是KeyGestureMouseGestureImplementations of InputGesture in Windows Presentation Foundation are KeyGesture and MouseGesture.

輸入手勢可以與命令相關聯, 如此一來, 在執行手勢時, 就會叫用命令。An input gesture can be associated with a command so that when the gesture is performed the command is invoked. 如需詳細資訊, InputBinding請參閱和命令總覽For more information, see InputBinding and the Commanding Overview.

建構函式

InputGesture()

初始化 InputGesture 類別的新執行個體。Initializes a new instance of the InputGesture class.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
Matches(Object, InputEventArgs)

在衍生類別中覆寫時,判斷指定的 InputGesture 是否符合與指定之 InputEventArgs 物件相關聯的輸入。When overridden in a derived class, determines whether the specified InputGesture matches the input associated with the specified InputEventArgs object.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱