Table of Contents

Class ScrollBarDrawable

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Implements scrollbar drawing.

public class ScrollBarDrawable : BaseDrawable, IBaseObject, IBaseDrawable
Inheritance
ScrollBarDrawable
Implements

Fields

ArrowMargin

Gets or sets distance (in dips) between arrow button and arrow.

Background

Gets or sets background element.

DownArrow

Gets or sets down arrow element.

DownButton

Gets or sets down button element.

IsVertical

Gets of sets whether scrollbar is vertical.

LeftArrow

Gets or sets primitive painter for the left arrow.

LeftButton

Gets or sets left button element.

MinThumbSize

Gets or sets minimal scrollbar thumb size in dips.

RightArrow

Gets or sets primitive painter for the right arrow.

RightButton

Gets or sets right button element.

Thumb

Gets or sets scroll thumb element.

ThumbMargin

Gets or sets distance (in dips) between thumb and scrollbar bounds.

UpArrow

Gets or sets up arrow element.

UpButton

Gets or sets up button element.

UseArrowSizeForThumb

Gets or sets whether to use arrow width as the thumb width for the vertical scrollbar and arrow height as the thumb height for the horizontal scrollbar.

Properties

Bounds

Gets or sets destination rectangle where to draw the object.

Metrics

Gets or sets scrollbar metrics.

Position

Gets or sets scrollbar information.

Methods

Draw(Control, Graphics)

Draws object on the canvas.

GetLayoutRectangles(double)

Performs layout of the drawable childs and returns calculated bound of the different parts of the drawable.

GetRealMetrics()

Gets real scrollbar metrics. If Metrics is not specified, returns DefaultMetrics.

GetVisibleEndArrow(VisualControlState)

Gets end arrow with the specified visual state.

GetVisibleEndButton(VisualControlState)

Gets end button with the specified visual state.

GetVisibleStartArrow(VisualControlState)

Gets start arrow with the specified visual state.

GetVisibleStartButton(VisualControlState)

Gets start button with the specified visual state.

HitTest(EnumArray<HitTestResult, RectD>, PointD)

Returns one of ScrollBarDrawable.HitTestResult constants.

SetPosition(ScrollBarInfo)

Sets value of the Position. Implemented for the convenience.