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