RecognitionConfidence RecognitionConfidence RecognitionConfidence RecognitionConfidence Enum

定義

特定のインク ジェスチャに対して GestureRecognizer が決定する信頼性レベルを指定します。Specifies the confidence level that the GestureRecognizer determines for a particular ink gesture.

public enum class RecognitionConfidence
public enum RecognitionConfidence
type RecognitionConfidence = 
Public Enum RecognitionConfidence
継承
RecognitionConfidenceRecognitionConfidenceRecognitionConfidenceRecognitionConfidence

フィールド

Intermediate Intermediate Intermediate Intermediate 1

認識結果の信頼性が中程度であることを示します。Indicates intermediate confidence in the recognition result.

Poor Poor Poor Poor 2

認識結果の信頼性が低いことを示します。Indicates poor confidence in the recognition result.

Strong Strong Strong Strong 0

認識結果の信頼性が高いことを示します。Indicates strong confidence in the recognition result.

次の例では、上のジェスチャを識別する方法、InkCanvasします。The following example demonstrates how to identify a gesture on an InkCanvas. この例では、InkCanvasと呼ばれるinkCanvas1とそのGestureイベントがこの例では、イベント ハンドラーに接続されました。This example assumes that there is an InkCanvas called inkCanvas1 and that its Gesture event has been connected to the event handler in this example.

void inkCanvas1_Gesture(object sender, InkCanvasGestureEventArgs e)
{
    ReadOnlyCollection<GestureRecognitionResult> gestureResults = 
        e.GetGestureRecognitionResults();

    // Check the first recognition result for a gesture.
    if (gestureResults[0].RecognitionConfidence == 
        RecognitionConfidence.Strong)
    {
        switch (gestureResults[0].ApplicationGesture)
        {
            case ApplicationGesture.Down:
                // Do something.
                break;
            case ApplicationGesture.ArrowDown:
                // Do something.
                break;
            case ApplicationGesture.Circle:
                // Do something.
                break;
        }

    }
}
Sub inkCanvas1_Gesture(ByVal sender As Object, _
    ByVal e As InkCanvasGestureEventArgs) Handles inkCanvas1.Gesture

    Dim gestureResults As ReadOnlyCollection(Of GestureRecognitionResult)
    gestureResults = e.GetGestureRecognitionResults()

    ' Check the first recognition result for a gesture.
    If gestureResults(0).RecognitionConfidence = _
       RecognitionConfidence.Strong Then

        Select Case gestureResults(0).ApplicationGesture
            Case ApplicationGesture.Down
                ' Do something.
            Case ApplicationGesture.ArrowDown
                ' Do something.
            Case ApplicationGesture.Circle
                ' Do something.
        End Select

    End If

End Sub 'inkCanvas1_Gesture

注釈

XAML テキストの使用状況XAML Text Usage

通常、このクラスは XAML では使用されません。This class is not typically used in XAML.

適用対象