[]
Initializes a new instance of the RenderRectangle class. The location and size of the rectangle are set to those of the current RenderRectangle object.
public RenderRectangle()
Public Sub New()
Initializes a new instance of the RenderRectangle class, assigning the width and height of the rectangle. The location of the rectangle is set to the location of the current RenderRectangle.
public RenderRectangle(Unit width, Unit height)
Public Sub New(width As Unit, height As Unit)
| Type | Name | Description |
|---|---|---|
| Unit | width | The width of the rectangle. |
| Unit | height | The height of the rectangle. |
Initializes a new instance of the RenderRectangle 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 RenderRectangle.
public RenderRectangle(Unit width, Unit height, LineDef shapeLine)
Public Sub New(width As Unit, height As Unit, shapeLine As LineDef)
| 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. |
Initializes a new instance of the RenderRectangle 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 RenderRectangle.
public RenderRectangle(Unit width, Unit height, LineDef shapeLine, Color shapeFillColor)
Public Sub New(width As Unit, height As Unit, shapeLine As LineDef, shapeFillColor As Color)
| 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. |
Initializes a new instance of the RenderRectangle 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 RenderRectangle.
public RenderRectangle(Unit width, Unit height, LineDef shapeLine, Brush shapeFillBrush)
Public Sub New(width As Unit, height As Unit, shapeLine As LineDef, shapeFillBrush As Brush)
| 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. |
Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle.
public RenderRectangle(Unit x, Unit y, Unit width, Unit height)
Public Sub New(x As Unit, y As Unit, width As Unit, height As Unit)
| 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. |
Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle, and the LineDef used to draw it.
public RenderRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine)
Public Sub New(x As Unit, y As Unit, width As Unit, height As Unit, shapeLine As LineDef)
| 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. |
Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle, the LineDef used to draw it, and the fill color.
public RenderRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine, Color shapeFillColor)
Public Sub New(x As Unit, y As Unit, width As Unit, height As Unit, shapeLine As LineDef, shapeFillColor As Color)
| 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. |
Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle, the LineDef used to draw it, and the fill brush.
public RenderRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine, Brush shapeFillBrush)
Public Sub New(x As Unit, y As Unit, width As Unit, height As Unit, shapeLine As LineDef, shapeFillBrush As Brush)
| 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. |