'Declaration
Public Sub DrawRectangle( _ ByVal brush As Brush, _ ByVal pen As Pen, _ ByVal rect As Rectangle _ )
'Usage
Dim instance As GdiPlusDrawingContext Dim brush As Brush Dim pen As Pen Dim rect As Rectangle instance.DrawRectangle(brush, pen, rect)
Parameters
- 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
- The pen with which to stroke the rectangle. This is optional, and can be null. If the pen is null, no stroke is drawn.
- rect
- The rectangle to draw.