次の方法で共有


InkAnalyzer.GetInkRecognizersByPriority メソッド

認識エンジンの順序の付いたコレクションを返します。

名前空間 :  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
認識エンジンの順序の付いたコレクション。

解説

アプリケーションは、GetInkRecognizersByPriority メソッドを呼び出すことにより、InkAnalyzer の特定のインスタンスの順序をチェックできます。

このコレクション内の認識エンジンの順序は、認識エンジンが評価される順序を表しています。

このメソッドは、現在の InkAnalyzer に関連付けられたアクティブな InkRecognizerCollection を返します。

次の例では、日本語入力とボックス入力の両方をサポートする InkRecognizer を取得し、優先順位の最も高い InkRecognizer として設定します。このコードは、次に、GetPriorityInkRecognizer() を呼び出し、既定のロケールの優先順位の最も高い InkRecognizer を取得します。既定のロケールが日本語に設定されている場合にのみ、2 つの InkRecognizer オブジェクトが同じものになります。

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 名前空間