All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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

Declaration

[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public DefaultBoolean AutoCorrectForeColor { get; set; }
<DefaultValue(DefaultBoolean.Default)>
<DXCategory("Appearance")>
<XtraSerializableProperty>
Public Property AutoCorrectForeColor As DefaultBoolean

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.

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