共用方式為


CoreInkIndependentInputSource.PointerPressing 事件

定義

發生于與InkPresenter物件相關聯之 InkCanvas之點擊測試或周框區域內的指標暫存器接觸時。 這可以是按下滑鼠按鍵,或是手指或手寫筆觸碰數位板表面時。

// Register
event_token PointerPressing(TypedEventHandler<CoreInkIndependentInputSource, PointerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreInkIndependentInputSource::PointerPressing_revoker PointerPressing(auto_revoke_t, TypedEventHandler<CoreInkIndependentInputSource, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreInkIndependentInputSource,PointerEventArgs> PointerPressing;
function onPointerPressing(eventArgs) { /* Your code */ }
coreInkIndependentInputSource.addEventListener("pointerpressing", onPointerPressing);
coreInkIndependentInputSource.removeEventListener("pointerpressing", onPointerPressing);
- or -
coreInkIndependentInputSource.onpointerpressing = onPointerPressing;
Public Custom Event PointerPressing As TypedEventHandler(Of CoreInkIndependentInputSource, PointerEventArgs) 

事件類型

適用於

另請參閱