InkRecognizerCollection.GetPriorityInkRecognizer 方法 (Int32, InkRecognizerCapabilities)
取得集合中會支援所指定功能和來自所指定地區設定之輸入的第一個辨識器。
命名空間: Microsoft.Ink
組件: Microsoft.Ink.Analysis (在 Microsoft.Ink.Analysis.dll 中)
語法
'宣告
Public Function GetPriorityInkRecognizer ( _
languageId As Integer, _
capabilities As InkRecognizerCapabilities _
) As InkRecognizer
'用途
Dim instance As InkRecognizerCollection
Dim languageId As Integer
Dim capabilities As InkRecognizerCapabilities
Dim returnValue As InkRecognizer
returnValue = instance.GetPriorityInkRecognizer(languageId, _
capabilities)
public InkRecognizer GetPriorityInkRecognizer(
int languageId,
InkRecognizerCapabilities capabilities
)
public:
InkRecognizer^ GetPriorityInkRecognizer(
int languageId,
InkRecognizerCapabilities capabilities
)
public InkRecognizer GetPriorityInkRecognizer(
int languageId,
InkRecognizerCapabilities capabilities
)
public function GetPriorityInkRecognizer(
languageId : int,
capabilities : InkRecognizerCapabilities
) : InkRecognizer
參數
- languageId
型別:System.Int32
辨識器支援的地區設定識別項。
- capabilities
型別:Microsoft.Ink.InkRecognizerCapabilities
辨識器支援的功能。
傳回值
型別:Microsoft.Ink.InkRecognizer
集合內第一個支援指定之 InkRecognizerCapabilities 和來自所指定地區設定之輸入的 InkRecognizer,或如果集合不包含這類辨識器,則為 nullNull 參照 (即 Visual Basic 中的 Nothing) 參考 (在 Visual Basic 中為 Nothing)。
範例
下列範例會從 InkRecognizerCollection (變數名稱為 theInkRecognizers) 取得第一個支援中性地區日文輸入和方塊式輸入的 InkRecognizer。
' Get the first recognizer from the InkRecognizerCollection that supports
' both region neutral Japanese and boxed input.
Dim theFirstJapaneseBoxedInputInkRecognizer As Microsoft.Ink.InkRecognizer = _
theInkRecognizers.GetPriorityInkRecognizer(&H11, _
Microsoft.Ink.InkRecognizerCapabilities.BoxedInput)
// Get the first recognizer from the InkRecognizerCollection that supports
// both region neutral Japanese and boxed input.
Microsoft.Ink.InkRecognizer theFirstJapaneseBoxedInputInkRecognizer =
theInkRecognizers.GetPriorityInkRecognizer(0x0011,
Microsoft.Ink.InkRecognizerCapabilities.BoxedInput);
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0