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