GraphicsDrawRectangle Method
Draws a rectangle specified by a coordinate pair, a width, and a height.
Namespace: SMath.DrawingAssembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
public void DrawRectangle(
ColorPen pen,
float x,
float y,
float width,
float height
)
Public Sub DrawRectangle (
pen As ColorPen,
x As Single,
y As Single,
width As Single,
height As Single
)
public:
virtual void DrawRectangle(
ColorPen^ pen,
float x,
float y,
float width,
float height
) sealed
abstract DrawRectangle :
pen : ColorPen *
x : float32 *
y : float32 *
width : float32 *
height : float32 -> unit
override DrawRectangle :
pen : ColorPen *
x : float32 *
y : float32 *
width : float32 *
height : float32 -> unit
- pen ColorPen
- A ColorPen that determines the color, width, and style of the rectangle.
- x Single
- The x-coordinate of the upper-left corner of the rectangle to draw.
- y Single
- The y-coordinate of the upper-left corner of the rectangle to draw.
- width Single
- The width of the rectangle to draw.
- height Single
- The height of the rectangle to draw.
IGraphicsDrawRectangle(ColorPen, Single, Single, Single, Single)