PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.6.2 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderBlockRectangle Method / RenderBlockRectangle(Unit,Unit,LineDef,Brush) Method
The width of the rectangle.
The height of the rectangle.
The LineDef to draw the rectangle with.
The fill brush.

In This Topic
    RenderBlockRectangle(Unit,Unit,LineDef,Brush) 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 line As LineDef, _
       ByVal fillBrush As Brush _
    ) As Boolean
    public bool RenderBlockRectangle( 
       Unit width,
       Unit height,
       LineDef line,
       Brush fillBrush
    )

    Parameters

    width
    The width of the rectangle.
    height
    The height of the rectangle.
    line
    The LineDef to draw the rectangle with.
    fillBrush
    The fill brush.

    Return Value

    true if no warnings were generated by this call, false otherwise.
    Remarks

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

    See Also