AnnotatedScrollBar.Scrolling 事件

定义

当用户使用按钮或与轨道交互滚动时发生。

// 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) 

事件类型

注解

可以通过将 AnnotatedScrollBarScrollingEventArgs.Cancel 属性设置为 来 true取消此事件。 取消此事件将阻止引发 IScrollController 滚动请求。

适用于