Skip to main content
All docs
V24.1

DXLinearGradientBrush(RectangleF, Color, Color) Constructor

Initializes a new instance of the DXLinearGradientBrush class with specified settings.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.1.dll

NuGet Package: DevExpress.Drawing

Declaration

public DXLinearGradientBrush(
    RectangleF rectangle,
    Color color1,
    Color color2
)

Parameters

Name Type Description
rectangle RectangleF

The bounds of the linear gradient.

color1 Color

The starting color of the gradient.

color2 Color

The ending color of the gradient.

See Also