PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / RenderRoundRectangle Class / RenderRoundRectangle Constructor / RenderRoundRectangle Constructor(Unit,Unit,Unit,Unit,LineDef,Brush)
The X coordinate of the rectangle, relative to the current object's location.
The Y coordinate of the rectangle, relative to the current object's location.
The width of the rectangle.
The height of the rectangle.
The LineDef used to draw the rectangle.
The brush used to fill the rectangle.

In This Topic
    RenderRoundRectangle Constructor(Unit,Unit,Unit,Unit,LineDef,Brush)
    In This Topic
    Initializes a new instance of the RenderRoundRectangle class, assigning the location and the size of the rectangle, the LineDef used to draw it, and the fill brush. 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 x As Unit, _
       ByVal y As Unit, _
       ByVal width As Unit, _
       ByVal height As Unit, _
       ByVal shapeLine As LineDef, _
       ByVal shapeFillBrush As Brush _
    )
    public RenderRoundRectangle( 
       Unit x,
       Unit y,
       Unit width,
       Unit height,
       LineDef shapeLine,
       Brush shapeFillBrush
    )

    Parameters

    x
    The X coordinate of the rectangle, relative to the current object's location.
    y
    The Y coordinate of the rectangle, relative to the current object's location.
    width
    The width of the rectangle.
    height
    The height of the rectangle.
    shapeLine
    The LineDef used to draw the rectangle.
    shapeFillBrush
    The brush used to fill the rectangle.
    See Also