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
    识别器支持的区域设置标识符。

返回值

类型: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

另请参见

参考

InkRecognizerCollection 类

InkRecognizerCollection 成员

GetPriorityInkRecognizer 重载

Microsoft.Ink 命名空间