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


RecognizerContext.SetEnabledUnicodeRanges - метод

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

Enables one or more Unicode ranges on the context.

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

Синтаксис

'Декларация
Public Sub SetEnabledUnicodeRanges ( _
    ranges As UnicodeRange() _
)
'Применение
Dim instance As RecognizerContext
Dim ranges As UnicodeRange()

instance.SetEnabledUnicodeRanges(ranges)
public void SetEnabledUnicodeRanges(
    UnicodeRange[] ranges
)
public:
void SetEnabledUnicodeRanges(
    array<UnicodeRange>^ ranges
)
public void SetEnabledUnicodeRanges(
    UnicodeRange[] ranges
)
public function SetEnabledUnicodeRanges(
    ranges : UnicodeRange[]
)

Параметры

Заметки

Not all recognizers support this method. If the recognizer does not support this method, a NotImplementedException will be raised. This method is new to the Microsoft.Ink version 6.0 assembly.

Примеры

In this example, a new UnicodeRange consisting of the upper case letters of the English alphabet is created, and then used to pass to the SetEnabledUnicodeRanges method. Since not all recognizers support this method, the method call is enclosed in a try…catch block.

Dim RC As RecognizerContext = New RecognizerContext()
Dim ucRange As UnicodeRange = New UnicodeRange("A", 26)
Try
    ' not all recognizers support this method
    RC.SetEnabledUnicodeRanges(New UnicodeRange() {ucRange})
Catch ex As NotImplementedException
    ' if SetEnabledUnicodeRanges() is not supported
End Try
RecognizerContext RC = new RecognizerContext();
UnicodeRange ucRange = new UnicodeRange('A', 26);
try
{
    // not all recognizers support this method
    RC.SetEnabledUnicodeRanges(new UnicodeRange[] { ucRange });
}
catch (NotImplementedException)
{
    // if SetEnabledUnicodeRanges() is not supported
}

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

RecognizerContext Класс

RecognizerContext - члены

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