XRControlStyle.TextAlignment Property

Gets or sets the text alignment stored in this style.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v20.1.dll


public override TextAlignment TextAlignment { get; set; }
Public Overrides 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 text alignment to be set to a control's XRControl.TextAlignment property when the current style is applied to it. Note that if the TextAlignment property's value is not set for the current XRControlStyle object, its value is treated as empty. This means that when a style is applied to a control, the control's TextAlignment property value isn't changed. For more information on this concept, please refer to Report Visual Styles.


The TextAlignment property is not applicable to all report controls. For example, the XRPageBreak class ignores the TextAlignment property.

See Also