Skip to main content
A newer version of this page is available. .

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.v19.2.dll

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
True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

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