XRControlStyle.TextAlignment Property

Gets or sets the text alignment stored in this style.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.1.dll

Syntax

[SRCategory(ReportStringId.CatAppearance)]
public override TextAlignment TextAlignment { get; set; }

Returns

Type Description
TextAlignment

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.

Note

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

See Also