ComponentOne CalendarView for WinForms
C1.Framework.Drawing.Gdi Namespace / LinearBoxGradientBrush Class / LinearBoxGradientBrush Constructor
An array of System.Drawing.Color that indicates the linear gradient colors.
A GradientDirection that indicates the gradient direction.

In This Topic
    LinearBoxGradientBrush Constructor
    In This Topic
    Initializes a new instance of the LinearBoxGradientBrush class.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal colors() As Color, _
       ByVal direction As GradientDirection _
    )
    public LinearBoxGradientBrush( 
       Color[] colors,
       GradientDirection direction
    )

    Parameters

    colors
    An array of System.Drawing.Color that indicates the linear gradient colors.
    direction
    A GradientDirection that indicates the gradient direction.
    See Also