Table of Contents

Struct DrawingUtils.DrawBorderParams

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

Represents the parameters required to fill a rectangle and optionally draw its border. This structure is used in FillBorderRectangle(Graphics, ref DrawBorderParams) and other methods.

public struct DrawingUtils.DrawBorderParams

Remarks

This structure encapsulates all the necessary information for rendering a filled rectangle with an optional border. It includes the target graphics context, the rectangle dimensions, the fill brush, border settings, and an optional control that influences the border rendering.

Constructors

DrawBorderParams(RectD, Brush?, BorderSettings?, bool, AbstractControl?)

Initializes a new instance of the DrawingUtils.DrawBorderParams struct.

Fields

Border

Gets or sets the border settings.

Brush

Gets or sets the brush to fill the rectangle.

Control

Control in which border is painted. Optional.

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.

OverrideBorderCornerSettings

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

Rect

Gets or sets the rectangle to fill and draw border.

UseRoundCorners

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