Share via


InkCanvasGestureEventArgs.Cancel 屬性

定義

取得或設定布林值,這個值表示是否要將筆劃視為筆勢。

public:
 property bool Cancel { bool get(); void set(bool value); };
public bool Cancel { get; set; }
member this.Cancel : bool with get, set
Public Property Cancel As Boolean

屬性值

如果筆劃是筆墨,則為 true; 如果筆劃是筆勢,則為 false

備註

Gesture事件發生時,屬性的值 Cancel 取決於 方法所 GetGestureRecognitionResults 傳回之集合中的第一個 GestureRecognitionResult 值。 如果 屬性的值 ApplicationGestureNoGesture ,或者它是手勢,其 RecognitionConfidence 為 以外的 Strong 值,則 Canceltrue 。 否則,Cancelfalse。 當 為 時 Cancel ,會將 InkCanvasStrokes 加入至其 StrokeCollectionfalse 當 為 trueCancel ,不會將筆劃新增至 InkCanvas

適用於