Table of Contents

Class RectangleDrawable

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

Implements background and border painting. Additionally it can paint image inside the rectangle.

public class RectangleDrawable : ImageDrawable, IBaseObject, IBaseDrawable
Inheritance
RectangleDrawable
Implements

Fields

Border

Gets or sets border settings.

Brush

Gets or sets brush to fill the rectangle.

CornerRadius

Gets or sets the corner radius. This value is used when UseRoundCorners is set to true.

CornerRadiusIsPercent

Indicates whether the corner radius is specified as a percentage of the element's size.

HasBorder

Gets or sets whether border is painted. Default is true.

HasImage

Gets or sets whether image is painted. Default is false.

OverrideBorderCornerSettings

Gets or sets a value indicating whether the corner settings specified in Border should be overridden.

UseRoundCorners

Gets or sets a value indicating whether border and/or background should be painted using rounded corners.

Properties

OnlyVisible

Returns this object if it is visible; otherwise returns null.

Methods

DefaultDrawBackAndBorder(AbstractControl, Graphics)

Performs default background and border painting.

OnDraw(AbstractControl, Graphics)

Performs custom drawing operations for the specified control.