Skip to main content

XRCrossTabCell.GetEffectiveTextAlignment() Method

Returns the cell’s actually used text alignment.

Namespace: DevExpress.XtraReports.UI.CrossTab

Assembly: DevExpress.XtraReports.v24.1.dll

NuGet Package: DevExpress.Reporting.Core


public override TextAlignment GetEffectiveTextAlignment()


Type Description

The effective text alignment.


The GetEffectiveTextAlignment method searches an actual text alignment in the following order:

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


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

See Also