Skip to main content
All docs
V24.1

DXGraphics.DrawRectangle(DXPen, RectangleF) Method

Draws a rectangle.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.1.dll

NuGet Package: DevExpress.Drawing

Declaration

public void DrawRectangle(
    DXPen pen,
    RectangleF bounds
)

Parameters

Name Type Description
pen DXPen

An object that determines the color, width, and style of the rectangle.

bounds RectangleF

The rectangle to draw.

See Also