Поделиться через


Recognizer.GetUnicodeRanges - метод

Обновлен: Ноябрь 2007

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

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink (в Microsoft.Ink.dll)

Синтаксис

'Декларация
Public Function GetUnicodeRanges As UnicodeRange()
'Применение
Dim instance As Recognizer
Dim returnValue As UnicodeRange()

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

Возвращаемое значение

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

Заметки

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

Примеры

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;

}

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

Recognizer Класс

Recognizer - члены

Microsoft.Ink - пространство имен