Search
GdiGraphics.DrawRectangle Method (Pen, Int32, Int32, Int32, Int32)
See Also
 





Draws a rectangle specified by a coordinate pair, a width, and a height.

Namespace: MindFusion.Drawing
Package: MindFusion.Common

 Syntax

C#  Copy Code

public virtual void DrawRectangle (
    Pen pen,
    int x,
    int y,
    int width,
    int height
)

Visual Basic  Copy Code

Public Overridable Sub DrawRectangle( _
    pen As Pen, _
    x As Integer, _
    y As Integer, _
    width As Integer, _
    height As Integer _
)

 Parameters

pen
A .NET Pen object that determines the color, width, and style of the rectangle.
x
The x-coordinate of the upper-left corner of the rectangle to draw.
y
The y-coordinate of the upper-left corner of the rectangle to draw.
width
The width of the rectangle to draw.
height
The height of the rectangle to draw.

 See Also