Skip to main content
All docs
V24.2

DXGraphics.DrawPie(DXPen, Rectangle, Single, Single) Method

Draws a pie shape.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.2.dll

Declaration

public void DrawPie(
    DXPen pen,
    Rectangle bounds,
    float startAngle,
    float sweepAngle
)

Parameters

Name Type Description
pen DXPen

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

bounds Rectangle

The bounding rectangle that defines the pie ellipse.

startAngle Single

Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.

sweepAngle Single

Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.

Remarks

If the sweepAngle parameter is greater than 360 degrees or less than -360 degrees, it is treated as if it were 360 degrees or -360 degrees, respectively.

See Also