Class ScrollBarBase
The base ScrollBarBase class. This is not intended to be derived outside of the Binarymission scrollbars assembly.
Assembly: Binarymission.WinForms.Controls.ScrollBars.dll
public abstract class ScrollBarBase : Control
Constructors
Declaration
protected ScrollBarBase()
Declaration
protected ScrollBarBase(IScrollersDockHost parentInstanceUsingThisScrollerInstance)
Parameters
Fields
Declaration
protected double _earlierScrolledPosition
Field Value
Declaration
protected bool _executeNavigationEvent
Field Value
Declaration
protected int _gripperArtefactHeight
Field Value
Declaration
protected int _gripperArtefactWidth
Field Value
Declaration
protected int _largeChange
Field Value
Declaration
protected int _maximumScrollRange
Field Value
Declaration
protected int _minimumScrollRange
Field Value
Declaration
protected readonly Control _parentInstanceUsingThisScrollerInstance
Field Value
Declaration
protected bool _performCarefulSizing
Field Value
Declaration
protected double _scrollPosition
Field Value
Declaration
protected Control _scrollServiceTargetControl
Field Value
Declaration
protected bool _shouldAutoScrolingActionEnd
Field Value
Declaration
protected int _smallChange
Field Value
Declaration
protected bool _usingSibling
Field Value
Properties
Gets the earlier scroll position.
Declaration
public double EarlierScrollPosition { get; }
Gets or sets the height of the horizontal scroll bar.
Declaration
public virtual int HorizontalScrollBarHeight { get; set; }
Declaration
protected bool IsDrawingCustomThumbImage { get; set; }
Gets or sets the large change.
Declaration
public int LargeChange { get; set; }
Gets or sets the maximum scroll range.
Declaration
public int MaximumScrollRange { get; set; }
Gets or sets the minimum scroll range.
Declaration
public int MinimumScrollRange { get; set; }
Gets or sets the padding gap.
Declaration
public int PaddingGap { get; set; }
Gets or sets the current scroll position.
Declaration
public double Position { get; set; }
Gets or sets a custom scroll bar renderer for painting the navigation button and their content.
Declaration
public IScrollBarNavigationButtonRenderer ScrollBarNavigationButtonRenderer { get; set; }
Gets or sets the scroll bar rendering configurator.
Declaration
public ScrollBarRenderingConfigurator ScrollBarRenderingConfigurator { get; set; }
Gets or sets a custom scroll bar renderer for painting the thumb gripper.
Declaration
public IScrollBarThumbGripperRenderer ScrollBarThumbGripperRenderer { get; set; }
Gets or sets a custom scroll bar renderer for painting the thumb.
Declaration
public IScrollBarThumbRenderer ScrollBarThumbRenderer { get; set; }
Gets or sets a custom scroll bar renderer for painting the track.
Declaration
public IScrollBarTrackRenderer ScrollBarTrackRenderer { get; set; }
Gets or sets the scroll service target control.
Declaration
public Control ScrollServiceTargetControl { get; set; }
Gets or sets a value indicating whether the control should automatically position scroller.
Declaration
public bool ShouldAutomaticallyPositionScroller { get; set; }
Gets or sets the small change.
Declaration
public int SmallChange { get; set; }
Gets or sets the width of the vertical scroll bar.
Declaration
public virtual int VerticalScrollBarWidth { get; set; }
Methods
Declaration
protected virtual void DrawScrollNavigator(Graphics graphicsInstance, Rectangle targetRectangle, ArrowDrawingArtefact arrowDrawingArtefact, ControlVisualState controlVisualState)
Parameters
Declaration
protected virtual void DrawThumbArtefactConditional(Graphics graphicsInstance, ControlVisualState controlVisualState)
Parameters
Declaration
protected virtual Rectangle GetThumbArtefactRectangle()
Returns
Declaration
protected override bool IsInputKey(Keys keyData)
Parameters
Type |
Name |
Description |
Keys |
keyData |
|
Returns
Declaration
protected override void OnHandleCreated(EventArgs e)
Parameters
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Declaration
protected override void OnParentChanged(EventArgs e)
Parameters
Declaration
protected override void OnTabStopChanged(EventArgs e)
Parameters
Declaration
protected virtual void PaintBackground(Graphics g)
Parameters
Declaration
protected virtual void PaintScrollBar(Graphics g)
Parameters
Declaration
protected virtual void PerformSizeRefresh()
Declaration
protected override void WndProc(ref Message m)
Parameters
Events
Occurs when horizontal scroll bar height changes.
Declaration
public event EventHandler HorizontalScrollBarHeightChanged
Event Type
Occurs when the scroll position changed.
Declaration
public event EventHandler<PositionChangedArgs> PositionChanged
Event Type
Occurs when vertical scroll bar width changes.
Declaration
public event EventHandler VerticalScrollBarWidthChanged
Event Type