GestureAlternate.Confidence 속성
업데이트: 2007년 11월
제스처 인식기에서 이 대체 항목에 할당한 신뢰 수준을 가져옵니다.
네임스페이스: Microsoft.StylusInput.PluginData
어셈블리: Microsoft.Ink(Microsoft.Ink.dll)
구문
‘선언
Public ReadOnly Property Confidence As RecognitionConfidence
‘사용 방법
Dim instance As GestureAlternate
Dim value As RecognitionConfidence
value = instance.Confidence
public RecognitionConfidence Confidence { get; }
public:
property RecognitionConfidence Confidence {
RecognitionConfidence get ();
}
/** @property */
public RecognitionConfidence get_Confidence()
public function get Confidence () : RecognitionConfidence
속성 값
형식: Microsoft.Ink.RecognitionConfidence
제스처 인식기에서 이 대체 항목에 할당한 신뢰 수준을 나타내는 RecognitionConfidence 열거형의 멤버입니다.
예제
이 Microsoft Visual C# .NET 예제는 IStylusAsyncPlugin 인터페이스의 CustomStylusDataAdded 메서드 구현에서 가져온 코드 조각입니다. IStylusAsyncPlugin 인터페이스를 구현하는 폼에는 TextBox 개체인 theTextBox가 들어 있습니다. CustomStylusDataAdded 메서드는 GestureRecognizer 개체에서 사용자 지정 스타일러스 데이터를 확인하고 GestureRecognizer 개체에서 인식한 하나 이상의 제스처에 대한 정보를 표시합니다.
using Microsoft.Ink;
using Microsoft.StylusInput;
using Microsoft.StylusInput.PluginData;
// ...
// Declare the RealTimeStylus objects, the GestureRecognizer plugin,
// and the DynamicRenderer plug-in.
private Microsoft.StylusInput.RealTimeStylus thePrimaryRealTimeStylus = null;
private Microsoft.StylusInput.RealTimeStylus theSecondaryRealTimeStylus = null;
private Microsoft.StylusInput.GestureRecognizer theGestureRecognizer = null;
private Microsoft.StylusInput.DynamicRenderer theDynamicRenderer = null;
// ...
// Informs the implementing object that user data is available.
public void CustomStylusDataAdded(RealTimeStylus sender, CustomStylusData data)
{
// We can identify the kind of custom data via either the Guid or Type.
// For the purpose of this demonstration we will validate both just to be safe.
// For other scenarios either approach is valid.
if (data.CustomDataId == GestureRecognizer.GestureRecognitionDataGuid)
{
// Cast the custom stylus data to gesture recognition data.
GestureRecognitionData theData = data.Data as GestureRecognitionData;
// If there is data in the notification, then display the information
// for all of the gestures recognized.
if (theData != null && theData.Count > 0)
{
this.theTextBox.Text = "GestureRecognitionData:" + Environment.NewLine;
foreach (GestureAlternate theGesture in theData)
{
this.theTextBox.Text += string.Format(
" Gesture {0,-10}, Confidence {1,-8}, Count {2}."
+ Environment.NewLine, theGesture.Id,
theGesture.Confidence, theGesture.StrokeCount);
}
this.theTextBox.Text += Environment.NewLine;
}
}
}
플랫폼
Windows Vista, Windows XP SP2, Windows Server 2003
.NET Framework 및 .NET Compact Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
버전 정보
.NET Framework
3.0에서 지원