The requested page is not available for the requested platform. You are viewing the content for Default platform.

XRControl.TextAlignment Property

Specifies the alignment of the control's text.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

[SRCategory(ReportStringId.CatAppearance)]
[XtraSerializableProperty]
public virtual TextAlignment TextAlignment { get; set; }
<SRCategory(ReportStringId.CatAppearance)>
<XtraSerializableProperty>
Public Overridable Property TextAlignment As TextAlignment

Property Value

Type Description
TextAlignment

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

Remarks

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