Skip to main content

LinearGradientMode Enum

Enumerates linear gradient directions available for DevExpress controls.

Declaration

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