Skip to main content

XRCrossTabCell.GetEffectiveForeColor() Method

Returns the cell’s actually used foreground color.

Namespace: DevExpress.XtraReports.UI.CrossTab

Assembly: DevExpress.XtraReports.v23.2.dll

NuGet Package: DevExpress.Reporting.Core


public override Color GetEffectiveForeColor()


Type Description

The effective foreground color.


The GetEffectiveForeColor method searches an actual foreground color in the following order:

  • the cell’s ForeColor property value if it differs from the default value;
  • the ForeColor property value in a style of the cell’s area (HeaderAreaStyle, DataAreaStyle or TotalAreaStyle) if it is set;
  • the ForeColor property value in the GeneralStyle if it is set;
  • the default foreground color.


See CrossTabStyles for more information about the Cross Tab’s appearance mechanism.

See Also