Back to Devexpress

LinearGradientMode Enum

vcl-dxgdiplusapi-5e2acaf7.md

latest2.0 KB
Original Source

LinearGradientMode Enum

Enumerates linear gradient directions available for DevExpress controls.

Declaration

delphi
LinearGradientMode = (
    LinearGradientModeHorizontal,
    LinearGradientModeVertical,
    LinearGradientModeForwardDiagonal,
    LinearGradientModeBackwardDiagonal
);

Members

Name
LinearGradientModeHorizontal
LinearGradientModeVertical
LinearGradientModeForwardDiagonal
LinearGradientModeBackwardDiagonal

Remarks

Options include:

ValueDescriptionGradient DirectionGradient Example
LinearGradientModeHorizontalThe left and right borders of a filled rectangle serve as the start and end gradient points.
LinearGradientModeVerticalThe top and bottom borders of a filled rectangle serve as the start and end gradient points.
LinearGradientModeForwardDiagonalThe upper-left and bottom right corners of a filled rectangle serve as the start and end gradient points.
LinearGradientModeBackwardDiagonalThe upper-right and bottom-left corners of the filled rectangle serve as the start and end gradient points.

The TdxGpLinearGradientMode type maps to the LinearGradientMode type.

See Also

dxGDIPlusAPI Unit