Skip to main content
All docs
V25.1
  • DXGraphicsPath.AddPie(Rectangle, Single, Single) Method

    Adds the outline of a pie shape to this path.

    Namespace: DevExpress.Drawing

    Assembly: DevExpress.Drawing.v25.1.dll

    NuGet Package: DevExpress.Drawing

    Declaration

    public void AddPie(
        Rectangle rect,
        float startAngle,
        float sweepAngle
    )

    Parameters

    Name Type Description
    rect Rectangle

    A bounding rectangle that defines the ellipse from which the pie is drawn.

    startAngle Single

    The starting angle for the pie section, measured in degrees clockwise from the x-axis.

    sweepAngle Single

    The angle between startAngle and the end of the pie section, measured in degrees clockwise from startAngle.

    Remarks

    The pie shape is defined by a partial outline of an ellipse and the two radial lines that intersect the endpoints of the partial outline. The partial outline begins at startAngle (measured clockwise from the x-axis) and ends at startAngle + sweepAngle.

    See Also