HypernovaDesktop Components · docs
Binarymission
WinForms › Scroll Bar Marker

Scroll Bar Marker

.NET Framework 4.8.NET 6 / 8 / 10v3.1.0WinForms

What every scroll bar mark has: the position it marks, its size and alignment, an optional border, a tool tip and a tag for your own data.

10public types
56public members
1namespaces

Assembly

AssemblyBinarymission.WinForms.Controls.MarkerScrollBar.dll
Root namespaceBinarymission.WinForms.Controls.MarkerScrollBar
Target frameworks.NET Framework 4.8, .NET 6 / 8 / 10
Depends onBinaryMenu, BinaryScrollBars

Overview

Add the derived marks – ScrollBarShapeMark, ScrollBarRangeMark, ScrollBarImageMark – to the ScrollBarMarks list of a MarkerVerticalScrollBar or MarkerHorizontalScrollBar. A plain ScrollBarMarkBase in the list is not drawn.

Getting started

using Binarymission.WinForms.Controls.MarkerScrollBar;

// Designer: build the solution once, then drag ScrollBarMarkBase from the Toolbox onto a form.
// In code:
var scrollBarMarkBase = new ScrollBarMarkBase
{
    Dock = DockStyle.Fill,
};
this.Controls.Add(scrollBarMarkBase);

API reference

Binarymission.WinForms.Controls.MarkerScrollBar

enum ImageMarkSizingModeHow a ScrollBarImageMark chooses the size its image is drawn at.
class MarkerHorizontalScrollBarA horizontal scroll bar that shows marks on its track - events on a timeline, bookmarks, selected ranges - at the positions they belong to, so the user can see where they are and click to go there.
class MarkerVerticalScrollBarA vertical scroll bar that shows marks on its track - errors, warnings, bookmarks, changed regions - at the positions they belong to, so the user can see where they are in a long document and click to go there.
class ScrollBarImageMarkA small image on a marker scroll bar, centred on the position it marks - a bookmark flag, a breakpoint dot, a status icon.
enum ScrollBarMarkAlignmentWhere a mark sits across a marker scroll bar. Left, Center and Right apply to a vertical bar; Top, Center and Bottom to a horizontal one.
class ScrollBarMarkBaseWhat every scroll bar mark has: the position it marks, its size and alignment, an optional border, a tool tip and a tag for your own data.
class ScrollBarRangeMarkA band on a marker scroll bar covering a stretch of the range, from Value to EndValue - a changed region, a selection, a time window.
class ScrollBarShapeMarkA coloured rectangle or oval on a marker scroll bar, centred on the position it marks - the usual way to show an error, a warning or a search hit.
enum ScrollBarShapedMarkModeHow a ScrollBarShapeMark or ScrollBarRangeMark is filled.
enum ScrollBarShapedMarkShapeThe shape of a ScrollBarShapeMark or ScrollBarRangeMark.