TextAlignment Enum
Specifies how the text associated with the control should be aligned.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Data.v20.1.dll
NuGet Packages: DevExpress.Data, DevExpress.WindowsDesktop.Data
Declaration
Members
Name | Description |
---|---|
TopLeft
|
The text is vertically aligned at the top, and horizontally aligned on the left. |
TopCenter
|
The text is vertically aligned at the top, and horizontally aligned at the center. |
TopRight
|
The text is vertically aligned at the top, and horizontally aligned on the right. |
MiddleLeft
|
The text is vertically aligned in the middle, and horizontally aligned on the left. |
MiddleCenter
|
The text is vertically aligned in the middle, and horizontally aligned at the center. |
MiddleRight
|
The text is vertically aligned in the middle, and horizontally aligned on the right. |
BottomLeft
|
The text is vertically aligned at the bottom, and horizontally aligned on the left. |
BottomCenter
|
The text is vertically aligned at the bottom, and horizontally aligned at the center. |
BottomRight
|
The text is vertically aligned at the bottom, and horizontally aligned on the right. |
TopJustify
|
The text is vertically aligned at the top, and horizontally justified. This mode is ignored in Silverlight applications. |
MiddleJustify
|
The text is vertically aligned in the middle, and horizontally justified. This mode is ignored in Silverlight applications. |
BottomJustify
|
The text is vertically aligned at the bottom, and horizontally justified. This mode is ignored in Silverlight applications. |
Remarks
The TextAlignment enumeration represents the different text alignment options for controls containing text.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the TextAlignment enum.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.