指定一个全局唯一标识符 (GUID),该 GUID 可用于获取表示识别器对于识别结果的置信级别的整数。
命名空间: System.Windows.Ink
程序集: IAWinFX(在 IAWinFX.dll 中)
语法
声明
Public Shared ReadOnly ConfidenceLevel As Guid
用法
Dim value As Guid
value = PropertyGuidsForContextNodes.ConfidenceLevel
public static readonly Guid ConfidenceLevel
public:
static initonly Guid ConfidenceLevel
public static final Guid ConfidenceLevel
public static final var ConfidenceLevel : Guid
备注
ConfidenceLevel 字段表示识别器对于下列类型的 ContextNode 上识别结果的准确度的置信级别:CustomRecognizer、InkBullet、InkWord、Line、Object、Paragraph、Root、TextWord 或 WritingRegion。
示例
下面的示例在 AnalysisHintNode 的 ContainsPropertyData 方法中检查确认是否有 ConfidenceLevel。如果有 ConfidenceLevel 字段,则该字段转换为一个整数以填充 myConfidenceLevel。
' Get the level of confidence: 1 == poor; 2 == intermediate; 3 == strong
If myAnalysisHintNode.ContainsPropertyData( _
PropertyGuidsForContextNodes.ConfidenceLevel) Then
Dim myConfidenceLevel As Integer = _
CType(myAnalysisHintNode.GetPropertyData( _
PropertyGuidsForContextNodes.ConfidenceLevel), Integer)
End If
// Get the level of confidence: 1 == poor; 2 == intermediate; 3 == strong
if (myAnalysisHintNode.ContainsPropertyData(
PropertyGuidsForContextNodes.ConfidenceLevel))
{
int myConfidenceLevel =
(int)myAnalysisHintNode.GetPropertyData(
PropertyGuidsForContextNodes.ConfidenceLevel);
}
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0
另请参见
参考
PropertyGuidsForContextNodes 类