Share via


RecognizerContext.GetEnabledUnicodeRanges Method

Returns an array of UnicodeRange that the recognizer supports.

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

Syntax

'Declaration
Public Function GetEnabledUnicodeRanges As UnicodeRange()
'Usage
Dim instance As RecognizerContext 
Dim returnValue As UnicodeRange()

returnValue = instance.GetEnabledUnicodeRanges()
public UnicodeRange[] GetEnabledUnicodeRanges()
public:
array<UnicodeRange>^ GetEnabledUnicodeRanges()
public function GetEnabledUnicodeRanges() : UnicodeRange[]

Return Value

Type: array<Microsoft.Ink.UnicodeRange[]
An array of UnicodeRange that the recognizer supports.

Remarks

This method is new to the Microsoft.Ink version 6.0 assembly.

Examples

In this example, a method accepts a RecognizerContext object, and uses the GetEnabledUnicodeRanges method of the passed object to calculate the total number of enabled characters.

Private Function SupportedUnicodeCharCount(ByVal pRecognizerContext As RecognizerContext) As Integer 
    Dim result As Integer = 0
    Dim UCRA() As UnicodeRange = pRecognizerContext.GetEnabledUnicodeRanges()
    For Each UCR As UnicodeRange In UCRA
        result += UCR.Length
    Next 
    Return result
End Function
private int SupportedUnicodeCharCount(RecognizerContext pRecognizerContext)
{
    int result = 0;
    UnicodeRange[] UCRA = pRecognizerContext.GetEnabledUnicodeRanges();
    foreach (UnicodeRange UCR in UCRA)
    {
        result += UCR.Length;
    }
    return result;

}

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

RecognizerContext Class

RecognizerContext Members

Microsoft.Ink Namespace