ComponentOne MultiSelect for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / PaintRectangle Method
A System.Drawing.Rectangle indicate the rectangle to paint.

In This Topic
    PaintRectangle Method
    In This Topic
    Draw the special rectangle by using the current pen of the device context and fill the rectangle by using the current brush of the device context.
    Syntax
    'Declaration
     
    
    Public Overridable Sub PaintRectangle( _
       ByVal rectangle As Rectangle _
    ) 
    public virtual void PaintRectangle( 
       Rectangle rectangle
    )

    Parameters

    rectangle
    A System.Drawing.Rectangle indicate the rectangle to paint.
    Exceptions
    ExceptionDescription
    Defines an exception class to handle the system error.
    Remarks
    The rectangle that is drawn excludes the bottom and right edges. If a C1.Framework.Drawing.Gdi.HollowPen is used, the dimensions of the rectangle are 1 pixel less in height and 1 pixel less in width.
    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