ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / ControlDeviceContext 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.
    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.
    See Also