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

XRCrossTabCell.GetEffectiveForeColor() Method

Returns the cell’s actually used foreground color.

Namespace: DevExpress.XtraReports.UI.CrossTab

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

public override Color GetEffectiveForeColor()

#Returns

Type Description
Color

The effective foreground color.

#Remarks

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.

Tip

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

See Also