Method DrawBorder
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
dcGraphicsThe Graphics object used to render the border.
prmDrawingUtils.DrawBorderParamsA 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
controlAbstractControlControl in which drawing is performed.
dcGraphicsDrawing context.
rectRectDRectangle.
borderBorderSettingsBorder settings.