TextAlignment Enum
Specifies the positioning of text within a control.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Data.v24.2.dll
NuGet Package: DevExpress.Data
#Declaration
#Members
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. |
#Related API Members
The following properties accept/return TextAlignment values:
Library | Related API Members |
---|---|
Cross-Platform Class Library | Bar |
Brick |
|
IBar |
|
.NET Reporting Tools | Subreport |
XRBar |
|
XRBar |
|
XRCharacter |
|
XRCheck |
|
XRControl. |
|
XRControl |
|
XRTable |
#Remarks
The TextAlignment
determines how the text is positioned relative to the control edges.
When alignment Justify is used, all lines but the last line of the paragraph are aligned. Thus, if the paragraph consists of one line, the output is identical to the Left alignment.