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