PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / RenderDirectArc Method / RenderDirectArc(Unit,Unit,Unit,Unit,Single,Single,LineDef) Method
The horizontal (X) coordinate at which to render the arc (cannot be auto).
The vertical (Y) coordinate at which to render the arc (cannot be auto).
The width of the arc.
The height of the arc.
The arc's starting angle (in degrees, measured clockwise from the X axis).
The arc's sweep angle (in degrees, measured clockwise from startAngle).
The C1.C1Preview.LineDef to draw the arc with.

In This Topic
    RenderDirectArc(Unit,Unit,Unit,Unit,Single,Single,LineDef) Method
    In This Topic
    Adds an arc to the C1.C1Preview.C1PrintDocument.Body of the current document at a specific position on the current page, and resolves it.
    Syntax
    'Declaration
     
    Public Overloads Sub RenderDirectArc( _
       ByVal x As Unit, _
       ByVal y As Unit, _
       ByVal width As Unit, _
       ByVal height As Unit, _
       ByVal startAngle As Single, _
       ByVal sweepAngle As Single, _
       ByVal line As LineDef _
    ) 
    public void RenderDirectArc( 
       Unit x,
       Unit y,
       Unit width,
       Unit height,
       float startAngle,
       float sweepAngle,
       LineDef line
    )

    Parameters

    x
    The horizontal (X) coordinate at which to render the arc (cannot be auto).
    y
    The vertical (Y) coordinate at which to render the arc (cannot be auto).
    width
    The width of the arc.
    height
    The height of the arc.
    startAngle
    The arc's starting angle (in degrees, measured clockwise from the X axis).
    sweepAngle
    The arc's sweep angle (in degrees, measured clockwise from startAngle).
    line
    The C1.C1Preview.LineDef to draw the arc with.
    Remarks

    This method can only be used between calls to C1.C1Preview.C1PrintDocument.StartDoc and C1.C1Preview.C1PrintDocument.EndDoc methods on the current document. For details, see C1.C1Preview.C1PrintDocument.RenderDirect.

    See Also