HypernovaDesktop Components · docs
Binarymission
WinFormsScroll Bar Marker › MarkerHorizontalScrollBar

MarkerHorizontalScrollBar

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.MarkerScrollBar

A custom Horizontal scrollbar control that renders markers on it.

public class MarkerHorizontalScrollBar : HorizontalScrollBar

Inherits from / implements: HorizontalScrollBar

Members at a glance

MarkerHorizontalScrollBarInitializes a new instance of the MarkerHorizontalScrollBar class.
ScrollBarMarksGets or sets the scroll bar marks.
ShouldDisplayToolTipInfoOnBookmarkGets or sets a value indicating whether the control should display tool tip information on bookmark.
ShouldEnableMarkerDrawingGets or sets a value indicating whether the control should enable marker drawing.
ShouldScrollUponBookmarkClickGets or sets a value indicating whether the control should scroll upon bookmark click.
OnMouseDownRaises the MouseDown event. MarkerHorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.
OnMouseHoverRaises the MouseHover event. MarkerHorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.
OnMouseMoveRaises the MouseMove event. MarkerHorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.
OnMouseUpRaises the MouseUp event. MarkerHorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.
PaintScrollBarDraws the scroll bar and then the markers over its track, which is what this variant adds to the plain bar.

Constructors

MarkerHorizontalScrollBar

public MarkerHorizontalScrollBar() : base()

Initializes a new instance of the MarkerHorizontalScrollBar class.

Properties

ScrollBarMarks

public IList<ScrollBarMarkBase> ScrollBarMarks

Gets or sets the scroll bar marks.

Value. The scroll bar marks.

ShouldDisplayToolTipInfoOnBookmark

public bool ShouldDisplayToolTipInfoOnBookmark

Gets or sets a value indicating whether the control should display tool tip information on bookmark.

ShouldEnableMarkerDrawing

public bool ShouldEnableMarkerDrawing

Gets or sets a value indicating whether the control should enable marker drawing.

ShouldScrollUponBookmarkClick

public bool ShouldScrollUponBookmarkClick

Gets or sets a value indicating whether the control should scroll upon bookmark click.

Methods

OnMouseDown

protected override void OnMouseDown(MouseEventArgs e)

Raises the MouseDown event. MarkerHorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseHover

protected override void OnMouseHover(EventArgs e)

Raises the MouseHover event. MarkerHorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseMove

protected override void OnMouseMove(MouseEventArgs e)

Raises the MouseMove event. MarkerHorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

OnMouseUp

protected override void OnMouseUp(MouseEventArgs e)

Raises the MouseUp event. MarkerHorizontalScrollBar overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

PaintScrollBar

protected override void PaintScrollBar(Graphics g)

Draws the scroll bar and then the markers over its track, which is what this variant adds to the plain bar.

g
The surface to draw on.