Table of Contents

Method DrawBorder

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

DrawBorder(Graphics, ref DrawBorderParams)

Draws a border around the specified rectangular area using the provided parameters.

public static void DrawBorder(Graphics dc, ref DrawingUtils.DrawBorderParams prm)

Parameters

dc Graphics

The Graphics object used to render the border.

prm DrawingUtils.DrawBorderParams

A reference to a DrawingUtils.DrawBorderParams structure that specifies the border properties, the rectangle to draw around, and other rendering details.

Remarks

This method first invokes any custom border painting logic defined in the Border object. If the border's DrawDefaultBorder property is set to true, the method proceeds to draw a default border using the specified colors and dimensions.

The method supports both rounded and non-rounded borders, depending on the corner radius determined by the DrawingUtils.DrawBorderParams. If a corner radius is specified, a rounded rectangle is drawn; otherwise, individual border sides are rendered based on their respective colors and widths.

DrawBorder(AbstractControl?, Graphics, RectD, BorderSettings?)

Draws border in the specified rectangle of the drawing context.

public static void DrawBorder(AbstractControl? control, Graphics dc, RectD rect, BorderSettings? border)

Parameters

control AbstractControl

Control in which drawing is performed.

dc Graphics

Drawing context.

rect RectD

Rectangle.

border BorderSettings

Border settings.