ジェスチャ認識エンジンによりこの候補に割り当てられる信頼性レベルを取得します。
名前空間 : 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