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。只有在預設地區設定已設定為日文時,這兩個 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