次の方法で共有


InkRecognizerCollection.GetPriorityInkRecognizer メソッド

既定のロケールをサポートするコレクション内の最初の InkRecognizer を取得します。

名前空間 :  System.Windows.Ink
アセンブリ :  IAWinFX (IAWinFX.dll 内)

構文

'宣言
Public Function GetPriorityInkRecognizer As InkRecognizer
'使用
Dim instance As InkRecognizerCollection
Dim returnValue As InkRecognizer

returnValue = instance.GetPriorityInkRecognizer()
public InkRecognizer GetPriorityInkRecognizer()
public:
InkRecognizer^ GetPriorityInkRecognizer()
public InkRecognizer GetPriorityInkRecognizer()
public function GetPriorityInkRecognizer() : InkRecognizer

戻り値

型 : System.Windows.Ink.InkRecognizer
コレクション内で既定のロケールをサポートする最初の InkRecognizer、またはコレクションが空の場合は nullnull 参照 (Visual Basic では Nothing) 参照 (Visual Basic では Nothing)。

次の例では、日本語入力とボックス入力の両方をサポートする 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

参照

参照

InkRecognizerCollection クラス

InkRecognizerCollection メンバ

GetPriorityInkRecognizer オーバーロード

System.Windows.Ink 名前空間