Skip to main content
All docs
V23.2

DXGraphics.DrawRectangle(DXPen, RectangleF) Method

Draws a rectangle.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v23.2.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