語言

CoreWetStrokeUpdateSource 類別

定義

表示管理筆跡筆劃資料的輸入、處理和轉譯的 InkPresenter 。

public ref class CoreWetStrokeUpdateSource sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CoreWetStrokeUpdateSource final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CoreWetStrokeUpdateSource
Public NotInheritable Class CoreWetStrokeUpdateSource
繼承
Object Platform::Object IInspectable CoreWetStrokeUpdateSource
屬性

Windows 需求

規格需求 Description
裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

備註

標準 Windows.UI.Input.Inking 事件會在轉譯筆墨筆劃之後發生。

使用 Windows.UI.Input.Inking.Core 事件來處理 InkPresenter轉譯「濕度」筆跡資料。 這在提供數位樣板時很有用,例如尺規或探測器,以限制和修改筆劃,同時是「濕度」,或遮罩從筆跡筆劃選取畫布的區域。

筆跡筆劃一律會觸發 WetStrokeCompleted 或 WetStrokeCanceled 事件。

屬性

名稱 Description
InkPresenter

取得 InkPresenter 物件,該物件會管理筆墨筆劃資料的輸入、處理和轉譯。

方法

名稱 Description
Create(InkPresenter)

擷取 CoreWetStrokeUpdateSource 物件,以在 InkPresenter 物件處理之前處理「濕度」筆墨筆劃。

事件

名稱 Description
WetStrokeCanceled

當 InkPresenter 以非預期的方式停止處理筆墨筆劃時發生, CoreWetStrokeDisposition 設定為 Canceled,或輸入無效,表示筆劃尚未完成。

例如,當筆跡輸入反升至另一個系統事件處理常式時,例如操作功能表。

WetStrokeCompleted

在 InkPresenter 停止處理筆墨筆劃之後發生, (WetStrokeStopping) 或 CoreWetStrokeDisposition 設定為 Completed,表示筆劃已完成。

後續筆跡輸入會被視為新的筆劃。

WetStrokeContinuing

發生于 InkPresenter 開始處理筆墨筆劃,並在停止處理相同的筆劃之前發生,表示會繼續擷取筆跡資料。

WetStrokeStarting

當 InkPresenter 開始處理筆墨筆劃時發生。

WetStrokeStopping

當 InkPresenter 停止處理筆墨筆劃時發生,但在筆劃完成之前, (WetStrokeCompleted) 。

適用於

另請參閱