[]
        
(Showing Draft Content)

C1.C1Preview.RenderRoundRectangle.-ctor

RenderRoundRectangle Constructor

RenderRoundRectangle()

Initializes a new instance of the RenderRoundRectangle class. The location and size of the rectangle are set to those of the current RenderRectangle object. The dimensions of the ellipse used to draw the rounded corners are set to 5% of the corresponding rectangle's dimensions.

Declaration
public RenderRoundRectangle()

RenderRoundRectangle(Unit, Unit)

Initializes a new instance of the RenderRoundRectangle class, assigning the width and height of the rectangle. 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.

Declaration
public RenderRoundRectangle(Unit width, Unit height)
Parameters
Type Name Description
Unit width

The width of the rectangle.

Unit height

The height of the rectangle.

RenderRoundRectangle(Unit, Unit, LineDef)

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.

Declaration
public RenderRoundRectangle(Unit width, Unit height, LineDef shapeLine)
Parameters
Type Name Description
Unit width

The width of the rectangle.

Unit height

The height of the rectangle.

LineDef shapeLine

The LineDef used to draw the rectangle.

RenderRoundRectangle(Unit, Unit, LineDef, Color)

Initializes a new instance of the RenderRoundRectangle class, assigning the width and height of the rectangle, the LineDef used to draw it, and the fill color. 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.

Declaration
public RenderRoundRectangle(Unit width, Unit height, LineDef shapeLine, Color shapeFillColor)
Parameters
Type Name Description
Unit width

The width of the rectangle.

Unit height

The height of the rectangle.

LineDef shapeLine

The LineDef used to draw the rectangle.

Color shapeFillColor

The color used to fill the rectangle.

RenderRoundRectangle(Unit, Unit, LineDef, Brush)

Initializes a new instance of the RenderRoundRectangle class, assigning the width and height of the rectangle, the LineDef used to draw it, and the fill brush. 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.

Declaration
public RenderRoundRectangle(Unit width, Unit height, LineDef shapeLine, Brush shapeFillBrush)
Parameters
Type Name Description
Unit width

The width of the rectangle.

Unit height

The height of the rectangle.

LineDef shapeLine

The LineDef used to draw the rectangle.

Brush shapeFillBrush

The brush used to fill the rectangle.

RenderRoundRectangle(Unit, Unit, Unit, Unit)

Initializes a new instance of the RenderRoundRectangle class, assigning the location and the size of the rectangle. The dimensions of the ellipse used to draw the rounded corners are set to 5% of the corresponding rectangle's dimensions.

Declaration
public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height)
Parameters
Type Name Description
Unit x

The X coordinate of the rectangle, relative to the current object's location.

Unit y

The Y coordinate of the rectangle, relative to the current object's location.

Unit width

The width of the rectangle.

Unit height

The height of the rectangle.

RenderRoundRectangle(Unit, Unit, Unit, Unit, LineDef)

Initializes a new instance of the RenderRoundRectangle class, assigning the location and the size of the rectangle, and the LineDef used to draw it. The dimensions of the ellipse used to draw the rounded corners are set to 5% of the corresponding rectangle's dimensions.

Declaration
public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine)
Parameters
Type Name Description
Unit x

The X coordinate of the rectangle, relative to the current object's location.

Unit y

The Y coordinate of the rectangle, relative to the current object's location.

Unit width

The width of the rectangle.

Unit height

The height of the rectangle.

LineDef shapeLine

The LineDef used to draw the rectangle.

RenderRoundRectangle(Unit, Unit, Unit, Unit, LineDef, Color)

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 color. The dimensions of the ellipse used to draw the rounded corners are set to 5% of the corresponding rectangle's dimensions.

Declaration
public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine, Color shapeFillColor)
Parameters
Type Name Description
Unit x

The X coordinate of the rectangle, relative to the current object's location.

Unit y

The Y coordinate of the rectangle, relative to the current object's location.

Unit width

The width of the rectangle.

Unit height

The height of the rectangle.

LineDef shapeLine

The LineDef used to draw the rectangle.

Color shapeFillColor

The color used to fill the rectangle.

RenderRoundRectangle(Unit, Unit, Unit, Unit, LineDef, Brush)

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.

Declaration
public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine, Brush shapeFillBrush)
Parameters
Type Name Description
Unit x

The X coordinate of the rectangle, relative to the current object's location.

Unit y

The Y coordinate of the rectangle, relative to the current object's location.

Unit width

The width of the rectangle.

Unit height

The height of the rectangle.

LineDef shapeLine

The LineDef used to draw the rectangle.

Brush shapeFillBrush

The brush used to fill the rectangle.

RenderRoundRectangle(Unit, Unit, Unit, Unit, Unit, Unit, LineDef, Color)

Initializes a new instance of the RenderRoundRectangle class, assigning the location, size and roundness of the rectangle, the LineDef used to draw it, and the fill color.

Declaration
public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height, Unit ellipseWidth, Unit ellipseHeight, LineDef shapeLine, Color shapeFillColor)
Parameters
Type Name Description
Unit x

The X coordinate of the rectangle, relative to the current object's location.

Unit y

The Y coordinate of the rectangle, relative to the current object's location.

Unit width

The width of the rectangle.

Unit height

The height of the rectangle.

Unit ellipseWidth

The width of the ellipse used to draw the rounded corners (may be specified as "5%width" for example).

Unit ellipseHeight

The height of the ellipse used to draw the rounded corners (may be specified as "5%height" for example).

LineDef shapeLine

The LineDef used to draw the rectangle.

Color shapeFillColor

The color used to fill the rectangle.

RenderRoundRectangle(Unit, Unit, Unit, Unit, Unit, Unit, LineDef, Brush)

Initializes a new instance of the RenderRoundRectangle class, assigning the location, size and roundness of the rectangle, the LineDef used to draw it, and the fill brush.

Declaration
public RenderRoundRectangle(Unit x, Unit y, Unit width, Unit height, Unit ellipseWidth, Unit ellipseHeight, LineDef shapeLine, Brush shapeFillBrush)
Parameters
Type Name Description
Unit x

The X coordinate of the rectangle, relative to the current object's location.

Unit y

The Y coordinate of the rectangle, relative to the current object's location.

Unit width

The width of the rectangle.

Unit height

The height of the rectangle.

Unit ellipseWidth

The width of the ellipse used to draw the rounded corners (may be specified as "5%width" for example).

Unit ellipseHeight

The height of the ellipse used to draw the rounded corners (may be specified as "5%height" for example).

LineDef shapeLine

The LineDef used to draw the rectangle.

Brush shapeFillBrush

The brush used to fill the rectangle.