共用方式為


CoreWindow.PointerWheelChanged 事件

定義

旋轉滑鼠滾輪時所引發的事件。

此事件的委派類型為 TypedEventHandler<TSender,TResult>,其中 TSender 的類型為 CoreWindow而 TResult 的類型為 PointerEventArgs

// Register
event_token PointerWheelChanged(TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreWindow::PointerWheelChanged_revoker PointerWheelChanged(auto_revoke_t, TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreWindow,PointerEventArgs> PointerWheelChanged;
function onPointerWheelChanged(eventArgs) { /* Your code */ }
coreWindow.addEventListener("pointerwheelchanged", onPointerWheelChanged);
coreWindow.removeEventListener("pointerwheelchanged", onPointerWheelChanged);
- or -
coreWindow.onpointerwheelchanged = onPointerWheelChanged;
Public Custom Event PointerWheelChanged As TypedEventHandler(Of CoreWindow, PointerEventArgs) Implements PointerWheelChanged

事件類型

實作

範例

請參閱 句柄指標輸入中的程式代碼範例。

適用於

另請參閱