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

TdxNavBarBaseStyle.GradientMode Property

Specifies the direction for the linear gradient brush used to fill an element’s background.

#Declaration

Delphi
property GradientMode: TdxBarStyleGradientMode read; write;

#Property Value

Type
TdxBarStyleGradientMode

#Remarks

If both the BackColor and BackColor2 properties are set, the elements using this style are supposed to draw their background with a linear gradient brush. Use the GradientMode property to specify the direction for this brush.

The direction for the linear gradient brush is specified by the TdxBarStyleGradientMode enumerator. The following table represents available values of this enumerator.

Value Description
gmHorizontal The direction of the linear gradient brush is horizontal.
gmVertical The direction of the linear gradient brush is vertical.
gmForwardDiagonal The direction of the linear gradient brush is diagonal starting from the top left corner.
gmBackwardDiagonal The direction of the linear gradient brush is diagonal starting from the top right corner.
See Also