Skip to main content
All docs
V25.1
  • DXLinearGradientBrush(PointF, PointF, Color, Color) Constructor

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

    Namespace: DevExpress.Drawing

    Assembly: DevExpress.Drawing.v25.1.dll

    NuGet Package: DevExpress.Drawing

    Declaration

    public DXLinearGradientBrush(
        PointF startPoint,
        PointF endPoint,
        Color color1,
        Color color2
    )

    Parameters

    Name Type Description
    startPoint PointF

    The starting point of the linear gradient.

    endPoint PointF

    The ending point of the linear gradient.

    color1 Color

    The starting color of the gradient.

    color2 Color

    The ending color of the gradient.

    See Also