InkRecognizerBaseCollection.GetPriorityInkRecognizer 方法 (InkRecognizerCapabilities)
获取集合中支持指定功能的第一个识别器。
命名空间: System.Windows.Ink.AnalysisCore
程序集: IACore(在 IACore.dll 中)
语法
声明
Public Function GetPriorityInkRecognizer ( _
capabilities As InkRecognizerCapabilities _
) As InkRecognizerBase
用法
Dim instance As InkRecognizerBaseCollection
Dim capabilities As InkRecognizerCapabilities
Dim returnValue As InkRecognizerBase
returnValue = instance.GetPriorityInkRecognizer(capabilities)
public InkRecognizerBase GetPriorityInkRecognizer(
InkRecognizerCapabilities capabilities
)
public:
InkRecognizerBase^ GetPriorityInkRecognizer(
InkRecognizerCapabilities capabilities
)
public InkRecognizerBase GetPriorityInkRecognizer(
InkRecognizerCapabilities capabilities
)
public function GetPriorityInkRecognizer(
capabilities : InkRecognizerCapabilities
) : InkRecognizerBase
参数
- 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
' boxed input.
Dim theFirstBoxedInputInkRecognizer As System.Windows.Ink.AnalysisCore.InkRecognizerBase = _
theInkRecognizers.GetPriorityInkRecognizer( _
System.Windows.Ink.AnalysisCore.InkRecognizerCapabilities.BoxedInput)
// Get the first recognizer from the InkRecognizerCollection that supports
// boxed input.
InkRecognizerBase theFirstBoxedInputInkRecognizer =
theInkRecognizers.GetPriorityInkRecognizer(
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