Share via


UnicodeRange Structure

Represents a unicode range.

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

Syntax

'Declaration
Public Structure UnicodeRange
'Usage
Dim instance As UnicodeRange
public struct UnicodeRange
public value class UnicodeRange
JScript supports the use of structures, but not the declaration of new ones.

Remarks

This type 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;

}

Thread Safety

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

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

UnicodeRange Members

Microsoft.Ink Namespace