PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderDirectRectangle Method / RenderDirectRectangle(Unit,Unit,Unit,Unit,Style) Method
The horizontal (X) coordinate at which to render the rectangle (cannot be auto).
The vertical (Y) coordinate at which to render the rectangle (cannot be auto).
The width of the rectangle.
The height of the rectangle.
The Style to use.

In This Topic
    RenderDirectRectangle(Unit,Unit,Unit,Unit,Style) Method
    In This Topic
    Adds a rectangle to the Body of the current document at a specific position on the current page, and resolves it.
    Syntax
    'Declaration
     
    Public Overloads Sub RenderDirectRectangle( _
       ByVal x As Unit, _
       ByVal y As Unit, _
       ByVal width As Unit, _
       ByVal height As Unit, _
       ByVal style As Style _
    ) 
    public void RenderDirectRectangle( 
       Unit x,
       Unit y,
       Unit width,
       Unit height,
       Style style
    )

    Parameters

    x
    The horizontal (X) coordinate at which to render the rectangle (cannot be auto).
    y
    The vertical (Y) coordinate at which to render the rectangle (cannot be auto).
    width
    The width of the rectangle.
    height
    The height of the rectangle.
    style
    The Style to use.
    Remarks

    This method can only be used between calls to StartDoc and EndDoc methods on the current document. For details, see RenderDirect(Unit,Unit,RenderObject,Object,Object).

    See Also