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

TdxNavBarViewInfo.BgGradientMode Method

Returns the gradient direction used to fill the control’s background.

#Declaration

Delphi
function BgGradientMode: TdxBarStyleGradientMode; virtual;

#Returns

Type
TdxBarStyleGradientMode

#Remarks

Call this function to obtain the gradient direction used to fill the background of the control. This value is specified by the control’s background style. The style is set via the OptionsStyle.DefaultStyles.Background default style. These settings, in turn, can be overridden by assigning a custom style to the OptionsStyle.CustomStyles.Background property of the NavBar control. The BgGradientMode function returns the GradientMode property value of the style assigned.

The BgGradientMode function can be used when handling the OnCustomDraw.Background event. It is useful if you don’t want to use custom gradient direction to fill the background.

See Also