CoreWetStrokeUpdateSource.WetStrokeCompleted 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在 InkPresenter 停止處理筆墨筆劃之後發生, (WetStrokeStopping) 或 CoreWetStrokeDisposition 設定為 Completed,表示筆劃已完成。
後續筆跡輸入會被視為新的筆劃。
// Register
event_token WetStrokeCompleted(TypedEventHandler<CoreWetStrokeUpdateSource, CoreWetStrokeUpdateEventArgs const&> const& handler) const;
// Revoke with event_token
void WetStrokeCompleted(event_token const* cookie) const;
// Revoke with event_revoker
CoreWetStrokeUpdateSource::WetStrokeCompleted_revoker WetStrokeCompleted(auto_revoke_t, TypedEventHandler<CoreWetStrokeUpdateSource, CoreWetStrokeUpdateEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreWetStrokeUpdateSource,CoreWetStrokeUpdateEventArgs> WetStrokeCompleted;
function onWetStrokeCompleted(eventArgs) { /* Your code */ }
coreWetStrokeUpdateSource.addEventListener("wetstrokecompleted", onWetStrokeCompleted);
coreWetStrokeUpdateSource.removeEventListener("wetstrokecompleted", onWetStrokeCompleted);
- or -
coreWetStrokeUpdateSource.onwetstrokecompleted = onWetStrokeCompleted;
Public Custom Event WetStrokeCompleted As TypedEventHandler(Of CoreWetStrokeUpdateSource, CoreWetStrokeUpdateEventArgs)
事件類型
備註
筆跡筆劃一律會觸發 WetStrokeCompleted 或 WetStrokeCanceled 事件。
針對 WetStrokeCompleted 和WetStrokeCanceled事件,NewInkPoints一律是空的。
針對WetStrokeStopping事件,NewInkPoints可能是空的。