VerticalScrollBar
Class VerticalScrollBar. Implements the vertical scrolling mode.
public class VerticalScrollBar : ScrollBarBase
Inherits from / implements: ScrollBarBase
Members at a glance
VerticalScrollBar | Initializes a new instance of the VerticalScrollBar class. |
VerticalScrollBar | Initializes a new instance of the VerticalScrollBar class. |
DefaultSize | Gets the size this control starts out at before anything sets it. |
HorizontalScrollBarHeight | This property is not relevant for the vertical mode. Please refer to the base class documentation. |
IsDefaultScrollContextMenuEnabled | Gets or sets a value indicating whether this instance has the built-in / default scroll context menu enabled. |
ShouldUseExtendedMenuControlForContextMenu | Gets or sets a value indicating whether the control should use the extended Binarymission menu control for displaying the context menu. |
GetNavigatorControlRect | Returns the bounds of one of the two arrow buttons. |
GetThumbArtefactRectangle | Returns where the thumb sits along the vertical track, sized from the ratio of the visible range to the whole range. |
OnMouseDown | Raises the MouseDown event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseEnter | Raises the MouseEnter event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseLeave | Raises the MouseLeave event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseMove | Raises the MouseMove event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseUp | Raises the MouseUp event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
OnResize | Raises the Resize event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
OnSizeChanged | Raises the SizeChanged event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
PaintScrollBar | Draws the vertical scroll bar: the track, then the thumb, then the arrow buttons. |
PerformSizeRefresh | Recalculates the vertical layout - the arrow buttons, the track and the thumb - after the control or its range changes. |
LineDown | Occurs when a small change occurs (Position increased). |
LineUp | Occurs when a small change occurs (Position decreased). |
PageDown | Occurs when a large change occurs (Position increased). |
PageUp | Occurs when a large change occurs (Position decreased). |
Scroll | Occurs when a scroll occurs. |
ThumbDown | Occurs when the thumb is moved down. |
ThumbUp | Occurs when the thumb is moved up. |
VerticalScrollPositionChanged | Occurs when scroll position changed. |
Constructors
VerticalScrollBar
Initializes a new instance of the VerticalScrollBar class.
VerticalScrollBar
Initializes a new instance of the VerticalScrollBar class.
Properties
DefaultSize
Gets the size this control starts out at before anything sets it.
HorizontalScrollBarHeight
This property is not relevant for the vertical mode. Please refer to the base class documentation.
Methods
GetThumbArtefactRectangle
Returns where the thumb sits along the vertical track, sized from the ratio of the visible range to the whole range.
Returns. The bounds of the thumb.
OnMouseDown
Raises the MouseDown event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseEnter
Raises the MouseEnter event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseLeave
Raises the MouseLeave event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseMove
Raises the MouseMove event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseUp
Raises the MouseUp event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnResize
Raises the Resize event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnSizeChanged
Raises the SizeChanged event. VerticalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
PaintScrollBar
Draws the vertical scroll bar: the track, then the thumb, then the arrow buttons.
- g
- The surface to draw on.
PerformSizeRefresh
Recalculates the vertical layout - the arrow buttons, the track and the thumb - after the control or its range changes.
Events
LineDown
Occurs when a small change occurs (Position increased).
LineUp
Occurs when a small change occurs (Position decreased).
PageDown
Occurs when a large change occurs (Position increased).
PageUp
Occurs when a large change occurs (Position decreased).
Scroll
Occurs when a scroll occurs.
ThumbDown
Occurs when the thumb is moved down.
ThumbUp
Occurs when the thumb is moved up.
VerticalScrollPositionChanged
Occurs when scroll position changed.