Search
IGraphics.DrawRectangle Method (Pen, Single, Single, Single, Single)
See Also
 





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

Namespace: MindFusion.Drawing
Assembly: MindFusion.Common

 Syntax

C#  Copy Code

void DrawRectangle (
    Pen pen,
    float x,
    float y,
    float width,
    float height
)

Visual Basic  Copy Code

Sub DrawRectangle( _
    pen As Pen, _
    x As Single, _
    y As Single, _
    width As Single, _
    height As Single _
)

 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