共用方式為


CoreWetStrokeUpdateSource.WetStrokeCanceled 事件

定義

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

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

// Register
event_token WetStrokeCanceled(TypedEventHandler<CoreWetStrokeUpdateSource, CoreWetStrokeUpdateEventArgs const&> const& handler) const;

// Revoke with event_token
void WetStrokeCanceled(event_token const* cookie) const;

// Revoke with event_revoker
CoreWetStrokeUpdateSource::WetStrokeCanceled_revoker WetStrokeCanceled(auto_revoke_t, TypedEventHandler<CoreWetStrokeUpdateSource, CoreWetStrokeUpdateEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreWetStrokeUpdateSource,CoreWetStrokeUpdateEventArgs> WetStrokeCanceled;
function onWetStrokeCanceled(eventArgs) { /* Your code */ }
coreWetStrokeUpdateSource.addEventListener("wetstrokecanceled", onWetStrokeCanceled);
coreWetStrokeUpdateSource.removeEventListener("wetstrokecanceled", onWetStrokeCanceled);
- or -
coreWetStrokeUpdateSource.onwetstrokecanceled = onWetStrokeCanceled;
Public Custom Event WetStrokeCanceled As TypedEventHandler(Of CoreWetStrokeUpdateSource, CoreWetStrokeUpdateEventArgs) 

事件類型

備註

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

針對WetStrokeCompleted和 WetStrokeCanceled 事件,NewInkPoints一律是空的。

針對WetStrokeStopping事件,NewInkPoints可能是空的。

適用於

另請參閱