ComponentOne MultiSelect for WinForms
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 Rectangle _
    ) 
    public void FillRectangle( 
       Brush brush,
       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.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also