HypernovaDesktop Components · docs
Binarymission
WinFormsScroll Bar Marker › MarkerVerticalScrollBar

MarkerVerticalScrollBar

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

A custom Vertical scrollbar control that renders markers on it.

public class MarkerVerticalScrollBar : VerticalScrollBar

Inherits from / implements: VerticalScrollBar

Members at a glance

MarkerVerticalScrollBarInitializes a new instance of the MarkerVerticalScrollBar 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. MarkerVerticalScrollBar overrides it so the control's own handling runs alongside the base behavior.
OnMouseHoverRaises the MouseHover event. MarkerVerticalScrollBar overrides it so the control's own handling runs alongside the base behavior.
OnMouseMoveRaises the MouseMove event. MarkerVerticalScrollBar overrides it so the control's own handling runs alongside the base behavior.
OnMouseUpRaises the MouseUp event. MarkerVerticalScrollBar 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

MarkerVerticalScrollBar

public MarkerVerticalScrollBar() : base()

Initializes a new instance of the MarkerVerticalScrollBar 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. MarkerVerticalScrollBar 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. MarkerVerticalScrollBar 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. MarkerVerticalScrollBar 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. MarkerVerticalScrollBar 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.