GH_ScrollBarVerticalBase

Provides basic vertical scroll bar logic.

Properties

Content

#
public int Content { get; set; }
Gets or sets the height of the content

ContentOffset

#
public double ContentOffset { get; }
Gets the vertical offset (in pixels) of the scrolled content.

Display

#
public int Display { get; set; }
Gets or sets the height of the display area.

Minimum

#
public int Minimum { get; set; }
Gets or sets the minimum height of the scrollbar.

Offset

#
public int Offset { get; }
Gets the offset of the scroller.

OffsetNormalised

#
public double OffsetNormalised { get; set; }
Gets or sets the normalised offset of the scroller.

Methods

BeginDrag

#
public void BeginDrag(RectangleF region, double start)
Start a new drag operation.
region (RectangleF)Scroll bar region (the rectangle in which the scroll bar is allowed to move).
start (double)Vertical offset of scroll drag.

ContinueDrag

#
public bool ContinueDrag(double position)
Continue a drag operation.
position (double)New offset hint.
True if the drag resulted in an offset change, false if not.

ScrollBar

#
public Rectangle ScrollBar(Rectangle rail)
Compute the size and position of the scroll bar in the scroll rail.
rail (Rectangle)Rail for scroll bar to move around in.
A rectangle describing the location and extends of the scroll bar.

ScrollBar

#
public RectangleF ScrollBar(RectangleF rail)
Compute the size and position of the scroll bar in the scroll rail.
rail (RectangleF)Rail for scroll bar to move around in.
A rectangle describing the location and extends of the scroll bar.