A newer version of this page is available. Switch to the current version.

XRControl.TextAlignment Property

Specifies the alignment of the control's text.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll


public virtual TextAlignment TextAlignment { get; set; }
Public Overridable Property TextAlignment As TextAlignment

Property Value

Type Description

A TextAlignment enumeration value that specifies how the text is aligned within the control.


The TextAlignment property specifies the alignment of a control's XRControl.Text.

If the TextAlignment property's value is not set for the current report control, its value is obtained from its parent, or a parent of its parent and so on. Similarly, the TextAlignment value of the current control is applied to all its child report controls (if there are any in its XRControl.Controls collection), if their TextAlignment property value is not set. For more information on this concept, please refer to Appearance Properties.

The TextAlignment property is not used by all descendants of the XRControl class. (For example, this property is not available for the XRPageBreak class.)

The horizontal alignment, specified by the TextAlignment property, is ignored, when the XRLabel.AutoWidth property of a label is set to true.

See Also