ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / PaintPie Method
A System.Drawing.Rectangle indicates the bounds of the ellipse.
A System.Drawing.Point indicates the endpoint of the first radial.
A System.Drawing.Point indicates the endpoint of the second radial.

In This Topic
    PaintPie Method
    In This Topic
    Paints a pie-shaped wedge bounded by the intersection of an ellipse and two radials. The pie is outlined by using the current pen and filled by using the current brush.
    Syntax
    'Declaration
     
    Public Overridable Sub PaintPie( _
       ByVal rectangle As System.Drawing.Rectangle, _
       ByVal firstRadial As System.Drawing.Point, _
       ByVal secondRadial As System.Drawing.Point _
    ) 
    public virtual void PaintPie( 
       System.Drawing.Rectangle rectangle,
       System.Drawing.Point firstRadial,
       System.Drawing.Point secondRadial
    )

    Parameters

    rectangle
    A System.Drawing.Rectangle indicates the bounds of the ellipse.
    firstRadial
    A System.Drawing.Point indicates the endpoint of the first radial.
    secondRadial
    A System.Drawing.Point indicates the endpoint of the second radial.
    Exceptions
    ExceptionDescription
    Defines an exception class to handle the system error.
    Remarks
    The curve of the pie is defined by an ellipse that fits the specified bounding rectangle. The curve begins at the point where the ellipse intersects the first radial and extends counterclockwise to the point where the ellipse intersects the second radial.
    See Also