Skip to main content

RibbonPageCategoryOptions.AutoCorrectForeColor Property

Gets or sets whether Ribbon categories automatically adjust their forecolors depending on a background color. Fore colors are adjusted when a contrast between fore and background colors is too low.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public DefaultBoolean AutoCorrectForeColor { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

DefaultBoolean.False or DefaultBoolean.Default if categories should use text fore colors assigned to their Appearance.ForeColor properties (or use a default skin color for categories with no custom color assigned). DefaultBoolean.True if categories should automatically change their caption fore colors.

Available values:

Name Description Return Value
True

The value is true.

0

False

The value is false.

1

Default

The value is specified by a global option or a higher-level object.

2

Property Paths

You can access this nested property as listed below:

Object Type Path to AutoCorrectForeColor
RibbonControl
.OptionsPageCategories .AutoCorrectForeColor

Remarks

The figure below illustrates how two Ribbon categories with LightPink and Gainsboro background colors change their fore color from light to dark when the AutoCorrectForeColor setting is enabled. The active skin is “Basic”.

rcat-colors

See Also