共用方式為


PropertyGuidsForContextNodes.ConfidenceLevel 欄位

指定用來取得和設定整數的全域唯一識別項 (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 上辨識結果正確性的信賴等級:CustomRecognizerInkBulletInkWordLineObjectParagraphRootTextWordWritingRegion

範例

下列範例會檢查 AnalysisHintNodeContainsPropertyData 方法中是否有 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 類別

PropertyGuidsForContextNodes 成員

System.Windows.Ink 命名空間