Class HorizontalScrollBar
Class HorizontalScrollBar. Implements the horizontal mode scroll bar.
Assembly: Binarymission.WinForms.Controls.ScrollBars.dll
public class HorizontalScrollBar : ScrollBarBase
Constructors
Declaration
public HorizontalScrollBar()
Declaration
public HorizontalScrollBar(IScrollersDockHost parent)
Parameters
Properties
Declaration
protected override Size DefaultSize { get; }
Gets or sets a value indicating whether this instance has the built-in / default scroll context menu enabled.
Declaration
public bool IsDefaultScrollContextMenuEnabled { get; set; }
Gets or sets a value indicating whether the control should use the extended Binarymission menu control for displaying the context menu.
Declaration
public bool ShouldUseExtendedMenuControlForContextMenu { get; set; }
This property is not relevant for the horizontal mode. Please refer to the base class documentation.
Declaration
public override int VerticalScrollBarWidth { get; set; }
Overrides
Methods
Declaration
protected Rectangle GetNavigatorControlRect(bool isNavigatingLeft)
Parameters
Type |
Name |
Description |
Boolean |
isNavigatingLeft |
|
Returns
Declaration
protected override Rectangle GetThumbArtefactRectangle()
Returns
Overrides
Performs hit test and returns the target artefact.
Declaration
public ScrollBarInteractionTarget HitTest(Point point)
Parameters
Type |
Name |
Description |
Point |
point |
|
Returns
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
Declaration
protected override void OnMouseEnter(EventArgs e)
Parameters
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
Declaration
protected override void OnResize(EventArgs e)
Parameters
Declaration
protected override void PaintScrollBar(Graphics g)
Parameters
Overrides
Declaration
protected override void PerformSizeRefresh()
Overrides
Events
Occurs when scroll position changed.
Declaration
public event EventHandler<PositionChangedArgs> HorizontalScrollPositionChanged
Event Type
Occurs when a line is moved to its left (left arrow key).
Declaration
public event EventHandler LineLeft
Event Type
Occurs when a line is moved to its right (right arrow key).
Declaration
public event EventHandler LineRight
Event Type
PageLeft
Occurs when a large change occurs (to its left).
Declaration
public event EventHandler PageLeft
Event Type
Occurs when a large change occurs (to its right).
Declaration
public event EventHandler PageRight
Event Type
Occurs when a scroll occurs.
Declaration
public event ScrollEventHandler Scroll
Event Type
Occurs when the thumb is moved to its left.
Declaration
public event EventHandler<ThumbEventArgs> ThumbLeft
Event Type
Occurs when the thumb is moved to its right.
Declaration
public event EventHandler<ThumbEventArgs> ThumbRight
Event Type