InkRecognizerContainer 类

定义

提供用于管理用于手写识别的一个或多个 InkRecognizer 对象的属性和方法。

如果识别引擎在系统上不可用,InkRecognizerContainer 为 null。

public ref class InkRecognizerContainer sealed : IInkRecognizerContainer
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.None)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class InkRecognizerContainer final : IInkRecognizerContainer
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.None)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class InkRecognizerContainer final : IInkRecognizerContainer
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.None)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class InkRecognizerContainer : IInkRecognizerContainer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.None)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class InkRecognizerContainer : IInkRecognizerContainer
function InkRecognizerContainer()
Public NotInheritable Class InkRecognizerContainer
Implements IInkRecognizerContainer
继承
Object Platform::Object IInspectable InkRecognizerContainer
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

如果不需要识别,请使用 InkStrokeContainer 对象而不是 InkManager。 以前的识别结果仍可通过 GetRecognitionResults 获得。

如果只需要识别,而不需要存储,请使用 InkRecognizerContainer 而不是 InkManager

注意

此类不敏捷,这意味着需要考虑其线程模型和封送处理行为。 有关详细信息,请参阅线程和封送处理 (C++/CX) 和使用多线程环境中的Windows 运行时对象 (.NET)

构造函数

InkRecognizerContainer()

创建新的 InkRecognizerContainer 对象来管理用于手写识别的 InkRecognizer 对象。

如果识别引擎在系统上不可用,InkRecognizerContainer 为 null。

方法

GetRecognizers()

获取已安装的手写识别器的集合。

RecognizeAsync(InkStrokeContainer, InkRecognitionTarget)

对一个或多个 InkStroke 对象执行手写识别。

SetDefaultRecognizer(InkRecognizer)

设置用于手写识别的默认 InkRecognizer

适用于

另请参阅