ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / FillRectangle Method / FillRectangle(IntPtr,Rectangle) Method
A System.IntPtr indicates the handle of the brush.
A System.Drawing.Rectangle indicate the rectangle to fill.

In This Topic
    FillRectangle(IntPtr,Rectangle) Method
    In This Topic
    Fills the specified rectangle by using the specified brush.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Sub FillRectangle( _
       ByVal brushHandle As IntPtr, _
       ByVal rectangle As Rectangle _
    ) 
    public virtual void FillRectangle( 
       IntPtr brushHandle,
       Rectangle rectangle
    )

    Parameters

    brushHandle
    A System.IntPtr indicates the handle of the brush.
    rectangle
    A System.Drawing.Rectangle indicate the rectangle to fill.
    Exceptions
    ExceptionDescription
    Defines an exception class to handle the system error.
    Remarks
    When filling the specified rectangle, it does not include the rectangle's right and bottom sides. GDI fills a rectangle up to, but not including, the right column and bottom row, regardless of the current mapping mode.
    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