This documentation is archived and is not being maintained.

RecognitionProperty Class

Defines globally unique identifiers (GUIDs) for properties that a InkRecognizerBase might support for recognition results.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

public sealed class RecognitionProperty

These GUIDs are available as read-only fields of this object. Use the InkRecognizerBase.GetSupportedProperties method to determine which properties are supported by a InkRecognizerBase.

Use these GUIDs to access properties of a RecognitionAlternate object by calling the GetPropertyValue method.

The following example demonstrates the RecognitionProperty class.

// Flags to hold capabilities 
bool
    hasConfidenceLevel = false,
    hasHotPoint = false,
    hasLineMetrics = false,
    hasLineNumber = false,
    hasMaximumStrokeCount = false,
    hasPointsPerInch = false,
    hasSegmentation = false;

Guid[] myInkRecognizerCapabilityGuids = myInkRecognizer.GetSupportedProperties();

Guid myTempGuid;

for (int i = 0; i < myInkRecognizerCapabilityGuids.Length; i++)
{
    myTempGuid = myInkRecognizerCapabilityGuids[i];

    if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.ConfidenceLevel)
    {
        hasConfidenceLevel = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.HotPoint)
    {
        hasHotPoint = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.LineMetrics)
    {
        hasLineMetrics = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.LineNumber)
    {
        hasLineNumber = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.MaximumStrokeCount)
    {
        hasMaximumStrokeCount = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.PointsPerInch)
    {
        hasPointsPerInch = true;
    }
    else if (myTempGuid == System.Windows.Ink.AnalysisCore.RecognitionProperty.Segmentation)
    {
        hasSegmentation = true;
    }
}

System.Object
  System.Windows.Ink.AnalysisCore.RecognitionProperty

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.0
Show: