PrintDocument for WPF | ComponentOne
C1.WPF.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / RenderRoundRectangle Class / RenderRoundRectangle Constructor / RenderRoundRectangle Constructor(Unit,Unit,LineDef)
The width of the rectangle.
The height of the rectangle.
The LineDef used to draw the rectangle.

In This Topic
    RenderRoundRectangle Constructor(Unit,Unit,LineDef)
    In This Topic
    Initializes a new instance of the RenderRoundRectangle class, assigning the width and height of the rectangle, and the LineDef used to draw it. The location of the rectangle is set to the location of the current RenderRoundRectangle. The dimensions of the ellipse used to draw the rounded corners are set to 5% of the corresponding rectangle's dimensions.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal width As Unit, _
       ByVal height As Unit, _
       ByVal shapeLine As LineDef _
    )
    public RenderRoundRectangle( 
       Unit width,
       Unit height,
       LineDef shapeLine
    )

    Parameters

    width
    The width of the rectangle.
    height
    The height of the rectangle.
    shapeLine
    The LineDef used to draw the rectangle.
    See Also