GraphicsDrawRectangle Method (Pen, Single, Single, Single, Single) |
Draws a rectangle
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public void DrawRectangle(
Pen pen,
float x,
float y,
float width,
float height
)
Public Sub DrawRectangle (
pen As Pen,
x As Single,
y As Single,
width As Single,
height As Single
)
member DrawRectangle :
pen : Pen *
x : float32 *
y : float32 *
width : float32 *
height : float32 -> unit
Parameters
- pen
- Type: Eto.DrawingPen
Pen to outline the rectangle - x
- Type: SystemSingle
X co-ordinate - y
- Type: SystemSingle
Y co-ordinate - width
- Type: SystemSingle
Width of the rectangle - height
- Type: SystemSingle
Height of the rectangle
See Also