Share via


AnnotatedScrollBar.Scrolling Event

Definition

Occurs when a user scrolls using the buttons or by interacting with the track.

// Register
event_token Scrolling(TypedEventHandler<AnnotatedScrollBar, AnnotatedScrollBarScrollingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AnnotatedScrollBar::Scrolling_revoker Scrolling(auto_revoke_t, TypedEventHandler<AnnotatedScrollBar, AnnotatedScrollBarScrollingEventArgs const&> const& handler) const;
public event TypedEventHandler<AnnotatedScrollBar,AnnotatedScrollBarScrollingEventArgs> Scrolling;
function onScrolling(eventArgs) { /* Your code */ }
annotatedScrollBar.addEventListener("scrolling", onScrolling);
annotatedScrollBar.removeEventListener("scrolling", onScrolling);
- or -
annotatedScrollBar.onscrolling = onScrolling;
Public Custom Event Scrolling As TypedEventHandler(Of AnnotatedScrollBar, AnnotatedScrollBarScrollingEventArgs) 

Event Type

Remarks

You can cancel this event by setting the AnnotatedScrollBarScrollingEventArgs.Cancel property to true. Cancelling this event will prevent IScrollController scroll requests from being raised.

Applies to