Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.Drawing Namespace / GdiPlusDrawingContext Class / DrawRectangle(Brush,Pen,Rectangle) Method
The brush with which to fill the rectangle. This is optional, and can be null. If the brush is null, no fill is drawn.
The pen with which to stroke the rectangle. This is optional, and can be null. If the pen is null, no stroke is drawn.
The rectangle to draw.


In This Topic
    DrawRectangle(Brush,Pen,Rectangle) Method
    In This Topic
    Draws a rectangle with the specified System.Drawing.Brush and System.Drawing.Pen. The pen and the brush can be null.
    Syntax
    '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)
    public void DrawRectangle( 
       Brush brush,
       Pen pen,
       Rectangle 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.
    See Also