PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.8 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / RenderBlockRectangle Method / RenderBlockRectangle(Unit,Unit,Color,Unit) Method
The width of the rectangle.
The height of the rectangle.
The line color.
The line thickness.

In This Topic
    RenderBlockRectangle(Unit,Unit,Color,Unit) Method
    In This Topic
    Renders a rectangle into the block flow of the current document.
    Syntax
    'Declaration
     
    Public Overloads Function RenderBlockRectangle( _
       ByVal width As Unit, _
       ByVal height As Unit, _
       ByVal lineColor As Color, _
       ByVal lineThickness As Unit _
    ) As Boolean
    public bool RenderBlockRectangle( 
       Unit width,
       Unit height,
       Color lineColor,
       Unit lineThickness
    )

    Parameters

    width
    The width of the rectangle.
    height
    The height of the rectangle.
    lineColor
    The line color.
    lineThickness
    The line thickness.

    Return Value

    true if no warnings were generated by this call, false otherwise.
    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.RenderBlock.

    See Also