Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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:

Value Description Gradient Direction Gradient Example
LinearGradientModeHorizontal The left and right borders of a filled rectangle serve as the start and end gradient points.
LinearGradientModeVertical The top and bottom borders of a filled rectangle serve as the start and end gradient points.
LinearGradientModeForwardDiagonal The upper-left and bottom right corners of a filled rectangle serve as the start and end gradient points.
LinearGradientModeBackwardDiagonal The 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