Skip to main content
All docs
V25.1
  • DXLinearGradientBrush(RectangleF, Color, Color, Single, Boolean) 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(
        RectangleF rectangle,
        Color color1,
        Color color2,
        float angle,
        bool isAngleScalable = false
    )

    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.

    angle Single

    The angle of the gradient’s orientation line, measured in degrees clockwise from the x-axis.

    Optional Parameters

    Name Type Default Description
    isAngleScalable Boolean False

    true if the angle is affected by the transformation matrix associated with this DXLinearGradientBrush; otherwise, false.

    See Also