GraphicsPath.AddRectangle Method |
Adds a rectangle to the path
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntaxpublic void AddRectangle(
float x,
float y,
float width,
float height
)
Public Sub AddRectangle (
x As Single,
y As Single,
width As Single,
height As Single
)
abstract AddRectangle :
x : float32 *
y : float32 *
width : float32 *
height : float32 -> unit
override AddRectangle :
x : float32 *
y : float32 *
width : float32 *
height : float32 -> unit
Parameters
- x
- Type: System.Single
X co-ordinate of the top left of the rectangle - y
- Type: System.Single
Y co-ordinate of the top left of the rectangle - width
- Type: System.Single
Width of the rectangle - height
- Type: System.Single
Height of the rectangle
Implements
IGraphicsPath.AddRectangle(Single, Single, Single, Single)
Remarks
Rectangles are separate figures and will not connect to the current or next figure in the path.
The starting point of the path will no longer be set after this call.
See Also