XRControlStyle.TextAlignment Property
Gets or sets the text alignment stored in this style.
Namespace: DevExpress.XtraReports.UI
Assembly: DevExpress.XtraReports.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
#Declaration
[SRCategory(ReportStringId.CatAppearance)]
public override TextAlignment TextAlignment { get; set; }
#Property Value
Type | Description |
---|---|
Text |
A Text |
Available values:
Name | Description |
---|---|
Top |
The text is vertically aligned at the top, and horizontally aligned on the left. |
Top |
The text is vertically aligned at the top, and horizontally aligned at the center. |
Top |
The text is vertically aligned at the top, and horizontally aligned on the right. |
Middle |
The text is vertically aligned in the middle, and horizontally aligned on the left. |
Middle |
The text is vertically aligned in the middle, and horizontally aligned at the center. |
Middle |
The text is vertically aligned in the middle, and horizontally aligned on the right. |
Bottom |
The text is vertically aligned at the bottom, and horizontally aligned on the left. |
Bottom |
The text is vertically aligned at the bottom, and horizontally aligned at the center. |
Bottom |
The text is vertically aligned at the bottom, and horizontally aligned on the right. |
Top |
The text is vertically aligned at the top, and horizontally justified. This mode is ignored in Silverlight applications. |
Middle |
The text is vertically aligned in the middle, and horizontally justified. This mode is ignored in Silverlight applications. |
Bottom |
The text is vertically aligned at the bottom, and horizontally justified. This mode is ignored in Silverlight applications. |
#Remarks
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 Text