Skip to main content
All docs
V24.2

DXGraphics.DrawRectangle(DXPen, RectangleF) Method

Draws a rectangle.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.2.dll

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