InkRecognizerCollection.GetPriorityInkRecognizer 方法 (InkRecognizerCapabilities)
获取集合中支持指定功能的第一个识别器。
命名空间: Microsoft.Ink
程序集: Microsoft.Ink.Analysis(在 Microsoft.Ink.Analysis.dll 中)
语法
声明
Public Function GetPriorityInkRecognizer ( _
capabilities As InkRecognizerCapabilities _
) As InkRecognizer
用法
Dim instance As InkRecognizerCollection
Dim capabilities As InkRecognizerCapabilities
Dim returnValue As InkRecognizer
returnValue = instance.GetPriorityInkRecognizer(capabilities)
public InkRecognizer GetPriorityInkRecognizer(
InkRecognizerCapabilities capabilities
)
public:
InkRecognizer^ GetPriorityInkRecognizer(
InkRecognizerCapabilities capabilities
)
public InkRecognizer GetPriorityInkRecognizer(
InkRecognizerCapabilities capabilities
)
public function GetPriorityInkRecognizer(
capabilities : InkRecognizerCapabilities
) : InkRecognizer
参数
- 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
' boxed input.
Dim theFirstBoxedInputInkRecognizer As Microsoft.Ink.InkRecognizer = _
theInkRecognizers.GetPriorityInkRecognizer( _
Microsoft.Ink.InkRecognizerCapabilities.BoxedInput)
// Get the first recognizer from the InkRecognizerCollection that supports
// boxed input.
Microsoft.Ink.InkRecognizer theFirstBoxedInputInkRecognizer =
theInkRecognizers.GetPriorityInkRecognizer(
Microsoft.Ink.InkRecognizerCapabilities.BoxedInput);
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0