Share via


Recognizer.SupportedProperties Property

Gets an array of type Guid that describe the properties that the Recognizer object supports.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public ReadOnly Property SupportedProperties As Guid()
'Usage
Dim instance As Recognizer 
Dim value As Guid()

value = instance.SupportedProperties
public Guid[] SupportedProperties { get; }
public:
property array<Guid>^ SupportedProperties {
    array<Guid>^ get ();
}
public function get SupportedProperties () : Guid[]

Property Value

Type: array<System.Guid[]
The properties that the Recognizer object supports.

Remarks

A recognizer may support line metrics, line numbers, confidence levels, and so on. For a complete list of the properties that a recognizer may support, see the RecognitionProperty object.

Examples

In this example, the first Recognizer that supports German (language ID 1031), the RecognizerCapabilities capability LinedInput, and ConfidenceLevel is assigned to the selected Recognizer object variable.

Dim selectedRecognizer As Recognizer = Nothing 
Dim allRecognizers As Recognizers = New Recognizers()
For Each oneReco As Recognizer In allRecognizers
    ' if we haven't found the one we want yet 
    If Not selectedRecognizer Is Nothing Then 
        ' if supports LinedInput 
        If (oneReco.Capabilities And RecognizerCapabilities.LinedInput) <> 0 Then 
            For Each langID As Short In oneReco.Languages
                ' if supports German (1031) 
                If langID = 1031 Then 
                    For Each propertyGuid As Guid In oneReco.SupportedProperties
                        ' if supports ConfidenceLevel 
                        If propertyGuid = RecognitionProperty.ConfidenceLevel Then 
                            ' assign selected
                            selectedRecognizer = oneReco
                        End If 
                    Next 
                End If 
            Next 
        End If 
    End If 
Next
Recognizer selectedRecognizer = null;
Recognizers allRecognizers = new Recognizers();
foreach (Recognizer oneReco in allRecognizers)
{
    // if we haven't found the one we want yet 
    if (null == selectedRecognizer)
    {
        // if supports LinedInput 
        if ((oneReco.Capabilities & RecognizerCapabilities.LinedInput) != 0)
        {
            foreach (short langID in oneReco.Languages)
            {
                // if supports German (1031) 
                if (langID == 1031)
                {
                    foreach (Guid propertyGuid in oneReco.SupportedProperties)
                    {
                        // if supports ConfidenceLevel 
                        if (propertyGuid == RecognitionProperty.ConfidenceLevel)
                        {
                            // assign selected
                            selectedRecognizer = oneReco;
                        }
                    }
                }
            }
        }
    }
}

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

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.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Recognizer Class

Recognizer Members

Microsoft.Ink Namespace

Recognizer

RecognitionProperty