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


InkAnalyzer.GetInkRecognizersByPriority - метод

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

Returns the ordered collection of recognizers.

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

Синтаксис

'Декларация
Public Function GetInkRecognizersByPriority As InkRecognizerCollection
'Применение
Dim instance As InkAnalyzer
Dim returnValue As InkRecognizerCollection

returnValue = instance.GetInkRecognizersByPriority()
public InkRecognizerCollection GetInkRecognizersByPriority()
public:
InkRecognizerCollection^ GetInkRecognizersByPriority()
public InkRecognizerCollection GetInkRecognizersByPriority()
public function GetInkRecognizersByPriority() : InkRecognizerCollection

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

Тип: System.Windows.Ink.InkRecognizerCollection
The ordered collection of recognizers.

Заметки

Applications may check the order of a particular instance of the InkAnalyzer, by calling the GetInkRecognizersByPriority method.

The order of recognizers in this collection represents the order in which recognizers will be evaluated.

This method will return the active InkRecognizerCollection associated with the current InkAnalyzer.

Примеры

The following example gets the InkRecognizer that supports Japanese and boxed input, setting it as the highest priority InkRecognizer. The code then calls GetPriorityInkRecognizer() to get the highest-priority InkRecognizer for the default locale. The two InkRecognizer objects will be equal only if the default locale is set to Japanese.

Dim theInkRecognizers As InkRecognizerCollection = _
    theInkAnalyzer.GetInkRecognizersByPriority()

' Get the first recognizer from the InkRecognizerCollection that supports
' both region neutral Japanese and boxed input. 
Dim firstJapaneseBoxedInputRecognizer As InkRecognizer = _
        theInkRecognizers.GetPriorityInkRecognizer(&H11, _
            InkRecognizerCapabilities.BoxedInput)

firstJapaneseBoxedInputRecognizer.SetAsHighestPriorityInkRecognizer()

Dim priorityInkRecognizer As InkRecognizer = theInkRecognizers.GetPriorityInkRecognizer()

'firstJapaneseBoxedInputRecognizer and priorityInkRecognizer are equal
'only if the firstJapaneseBoxedInputRecognizer supports the default locale.
InkRecognizerCollection theInkRecognizers = 
    theInkAnalyzer.GetInkRecognizersByPriority();

// Get the first recognizer from the InkRecognizerCollection that supports
// both region neutral Japanese and boxed input.
InkRecognizer firstJapaneseBoxedInputRecognizer =
    theInkRecognizers.GetPriorityInkRecognizer(0x0011,
        InkRecognizerCapabilities.BoxedInput);

firstJapaneseBoxedInputRecognizer.SetAsHighestPriorityInkRecognizer();

InkRecognizer priorityInkRecognizer = theInkRecognizers.GetPriorityInkRecognizer();

//firstJapaneseBoxedInputRecognizer and priorityInkRecognizer are equal
//only if the firstJapaneseBoxedInputRecognizer supports the default locale.

Платформы

Windows Vista

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

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

.NET Framework

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

См. также

Ссылки

InkAnalyzer Класс

InkAnalyzer - члены

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