PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / RenderDirectEllipse Method / RenderDirectEllipse(Unit,Unit,Unit,Unit,LineDef,Brush) Method
The horizontal (X) coordinate at which to render the ellipse (cannot be auto).
The vertical (Y) coordinate at which to render the ellipse (cannot be auto).
The width of the ellipse.
The height of the ellipse.
The C1.C1Preview.LineDef to draw the ellipse with.
The fill brush.

In This Topic
    RenderDirectEllipse(Unit,Unit,Unit,Unit,LineDef,Brush) Method
    In This Topic
    Adds an ellipse 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 RenderDirectEllipse( _
       ByVal x As Unit, _
       ByVal y As Unit, _
       ByVal width As Unit, _
       ByVal height As Unit, _
       ByVal line As LineDef, _
       ByVal fillBrush As Brush _
    ) 
    public void RenderDirectEllipse( 
       Unit x,
       Unit y,
       Unit width,
       Unit height,
       LineDef line,
       Brush fillBrush
    )

    Parameters

    x
    The horizontal (X) coordinate at which to render the ellipse (cannot be auto).
    y
    The vertical (Y) coordinate at which to render the ellipse (cannot be auto).
    width
    The width of the ellipse.
    height
    The height of the ellipse.
    line
    The C1.C1Preview.LineDef to draw the ellipse with.
    fillBrush
    The fill brush.
    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