共用方式為


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

適用於

另請參閱