[]
        
(Showing Draft Content)

GrapeCity.Drawing.IDrawingContext.DrawRectangle

DrawRectangle Method

DrawRectangle(Brush, Pen, Rectangle)

Draws a rectangle with the specified Brush and Pen. The pen and the brush can be null.

Declaration
void DrawRectangle(Brush brush, Pen pen, Rectangle rect)
Sub DrawRectangle(brush As Brush, pen As Pen, rect As Rectangle)
Parameters
Type Name Description
Brush brush

The brush with which to fill the rectangle. This is optional, and can be null. If the brush is null, no fill is drawn.

Pen pen

The pen with which to stroke the rectangle. This is optional, and can be null. If the pen is null, no stroke is drawn.

Rectangle rect

The rectangle to draw.