HorizontalScrollBar
Class HorizontalScrollBar. Implements the horizontal mode scroll bar.
public class HorizontalScrollBar : ScrollBarBase
Inherits from / implements: ScrollBarBase
Members at a glance
HorizontalScrollBar | Initializes a new instance of the HorizontalScrollBar class. |
HorizontalScrollBar | Initializes a new instance of the HorizontalScrollBar class. |
DefaultSize | Gets the size this control starts out at before anything sets it. |
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. |
VerticalScrollBarWidth | This property is not relevant for the horizontal mode. Please refer to the base class documentation. |
GetNavigatorControlRect | Returns the bounds of one of the two arrow buttons. |
GetThumbArtefactRectangle | Returns where the thumb sits along the horizontal track, sized from the ratio of the visible range to the whole range. |
HitTest | Performs hit test and returns the target artefact. |
OnMouseDown | Raises the MouseDown event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseEnter | Raises the MouseEnter event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseLeave | Raises the MouseLeave event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseMove | Raises the MouseMove event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
OnMouseUp | Raises the MouseUp event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
OnResize | Raises the Resize event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior. |
PaintScrollBar | Draws the horizontal scroll bar: the track, then the thumb, then the arrow buttons. |
PerformSizeRefresh | Recalculates the horizontal layout - the arrow buttons, the track and the thumb - after the control or its range changes. |
HorizontalScrollPositionChanged | Occurs when scroll position changed. |
LineLeft | Occurs when a line is moved to its left (left arrow key). |
LineRight | Occurs when a line is moved to its right (right arrow key). |
PageLeft | Occurs when a large change occurs (to its left). |
PageRight | Occurs when a large change occurs (to its right). |
Scroll | Occurs when a scroll occurs. |
ThumbLeft | Occurs when the thumb is moved to its left. |
ThumbRight | Occurs when the thumb is moved to its right. |
Constructors
HorizontalScrollBar
Initializes a new instance of the HorizontalScrollBar class.
HorizontalScrollBar
Initializes a new instance of the HorizontalScrollBar class.
- parent
- The parent.
Properties
DefaultSize
Gets the size this control starts out at before anything sets it.
VerticalScrollBarWidth
This property is not relevant for the horizontal mode. Please refer to the base class documentation.
Methods
GetThumbArtefactRectangle
Returns where the thumb sits along the horizontal track, sized from the ratio of the visible range to the whole range.
Returns. The bounds of the thumb.
HitTest
Performs hit test and returns the target artefact.
OnMouseDown
Raises the MouseDown event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseEnter
Raises the MouseEnter event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseLeave
Raises the MouseLeave event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseMove
Raises the MouseMove event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnMouseUp
Raises the MouseUp event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
OnResize
Raises the Resize event. HorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.
- e
- The data for the event.
PaintScrollBar
Draws the horizontal scroll bar: the track, then the thumb, then the arrow buttons.
- g
- The surface to draw on.
PerformSizeRefresh
Recalculates the horizontal layout - the arrow buttons, the track and the thumb - after the control or its range changes.
Events
HorizontalScrollPositionChanged
Occurs when scroll position changed.
LineLeft
Occurs when a line is moved to its left (left arrow key).
LineRight
Occurs when a line is moved to its right (right arrow key).
PageLeft
Occurs when a large change occurs (to its left).
PageRight
Occurs when a large change occurs (to its right).
Scroll
Occurs when a scroll occurs.
ThumbLeft
Occurs when the thumb is moved to its left.
ThumbRight
Occurs when the thumb is moved to its right.