ComponentOne CalendarView for WinForms
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / DeviceContext Class / FillRectangle Method / FillRectangle(Color,Color,Rectangle,Boolean) Method
System.Drawing.Color structure that represents the start color of gradient.
System.Drawing.Color structure that represents the end color of gradient.
System.Drawing.Rectangle structure that represents the rectangle to fill.
A bool indicates the fill direction. false is horizontal direction. true is vertical direction.

In This Topic
    FillRectangle(Color,Color,Rectangle,Boolean) Method
    In This Topic
    Gradient fills the rectangle with colors.
    Syntax
    'Declaration
     
    
    Public Overloads Sub FillRectangle( _
       ByVal startColor As Color, _
       ByVal endColor As Color, _
       ByVal rectangle As Rectangle, _
       ByVal verticalDirection As Boolean _
    ) 

    Parameters

    startColor
    System.Drawing.Color structure that represents the start color of gradient.
    endColor
    System.Drawing.Color structure that represents the end color of gradient.
    rectangle
    System.Drawing.Rectangle structure that represents the rectangle to fill.
    verticalDirection
    A bool indicates the fill direction. false is horizontal direction. true is vertical direction.
    See Also