Share via


Recognizer.GetUnicodeRanges Method

Returns an array of UnicodeRange representing the supported Unicode character ranges.

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

Syntax

'Declaration
Public Function GetUnicodeRanges As UnicodeRange()
'Usage
Dim instance As Recognizer 
Dim returnValue As UnicodeRange()

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

Return Value

Type: array<Microsoft.Ink.UnicodeRange[]
An array of UnicodeRange representing the supported Unicode character ranges.

Remarks

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

Examples

In this example, a method accepts a Recognizer object, and uses the GetUnicodeRanges method of the passed object to calculate the total number of supported characters.

Private Function SupportedUnicodeCharCount(ByVal pRecognizer As Recognizer) As Integer 
    Dim result As Integer = 0
    Dim UCRA() As UnicodeRange = pRecognizer.GetUnicodeRanges()
    For Each UCR As UnicodeRange In UCRA
        result += UCR.Length
    Next 
    Return result
End Function
private int SupportedUnicodeCharCount(Recognizer pRecognizer)
{
    int result = 0;
    UnicodeRange[] UCRA = pRecognizer.GetUnicodeRanges();
    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

Recognizer Class

Recognizer Members

Microsoft.Ink Namespace