Table of Contents

Class InteriorDrawable

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

Implements control interior drawing. This includes border, background, vertical and horizontal scrollbars drawing.

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

Fields

Background

Gets or sets background element.

Border

Gets or sets border element.

Corner

Gets or sets corner element.

HorzScrollBar

Gets or sets horizontal scrollbar element.

VertScrollBar

Gets or sets vertical scrollbar element.

Properties

BorderWidth

Gets border widths.

BothVisible

Gets whether vertical and horizontal scrollbars are visible.

Bounds

Gets or sets destination rectangle where to draw the object.

CornerVisible

Gets whether corner is visible.

HasBorder

Gets whether interior has border.

HasCorner

Gets whether corner and both scrollbars are visible.

HorzPosition

Gets or sets position of the horizontal scrollbar if it is created.

HorzVisible

Gets whether horizontal scrollbar is visible.

Metrics

Gets or sets scrollbar metrics.

VertPosition

Gets or sets position of the vertical scrollbar if it is created.

VertVisible

Gets whether vertical scrollbar is visible.

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 scroll bar metrics. If Metrics is not specified, returns DefaultMetrics.

HitTest(EnumArray<HitTestResult, RectD>, PointD)

Returns one of InteriorDrawable.HitTestResult constants.

HitTests(double, PointD)

Returns InteriorDrawable.HitTestsResult which contains interior hit test and scrollbar hit test.

SetDefaultBorder(bool)

Sets default border.

SetThemeMetrics(KnownTheme, bool)

Initialized this drawable with default settings for the specified color theme.