InkCanvasGestureEventArgs.GetGestureRecognitionResults Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns results from the gesture recognizer.
public:
System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Ink::GestureRecognitionResult ^> ^ GetGestureRecognitionResults();
public System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Ink.GestureRecognitionResult> GetGestureRecognitionResults ();
member this.GetGestureRecognitionResults : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Ink.GestureRecognitionResult>
Public Function GetGestureRecognitionResults () As ReadOnlyCollection(Of GestureRecognitionResult)
Returns
A collection of possible application gestures that the Strokes might be.
Remarks
The collection returned by the GetGestureRecognitionResults method is sorted by the GestureRecognitionResult.RecognitionConfidence property. For example, GetGestureRecognitionResults might return a collection of GestureRecognitionResult objects with the following values:
Index | ApplicationGesture | RecognitionConfidence |
---|---|---|
0 | Check | Strong |
1 | NoGesture | Intermediate |
2 | Curlicue | Poor |
3 | DoubleCurlicue | Poor |
This means that the GestureRecognizer recognizes that it is very likely that the Stroke is a check mark, relatively likely that the Stroke in not a gesture, and not at all likely that the Stroke is a curlicue or a double curlicue.
Note
The GetGestureRecognitionResults method can return an array with NoGesture with a higher degree of RecognitionConfidence than it has for other application gestures. This means that it is more likely that the Stroke is not a gesture, as opposed to a gesture that has a lower RecognitionConfidence.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應