ComponentOne Input for WinForms
C1.Win.C1Input.4.5.2 Assembly / C1.Framework.Drawing.Gdi Namespace / Graphics Class / FillRectangle Method
A Brush object used to fill the rectangle.
A System.Drawing.Rectangle structure that specifies the rectangle to be filled.

In This Topic
    FillRectangle Method (Graphics)
    In This Topic
    Fill the specified rectangle by using the given brush.
    Syntax
    'Declaration
     
    Public Sub FillRectangle( _
       ByVal brush As Brush, _
       ByVal rectangle As System.Drawing.Rectangle _
    ) 
    public void FillRectangle( 
       Brush brush,
       System.Drawing.Rectangle rectangle
    )

    Parameters

    brush
    A Brush object used to fill the rectangle.
    rectangle
    A System.Drawing.Rectangle structure that specifies the rectangle to be filled.
    Exceptions
    ExceptionDescription
    Defines an exception class to handle the system error.
    See Also