Specifies the alignment of text on the drawing surface.
Namespace: com.mindfusion.drawing
File: com.mindfusion.drawing
Java
![]() |
---|
public enum TextAlignment |
Member name | Description | |
---|---|---|
![]() |
BottomCenter |
Text is vertically aligned at the bottom, and horizontally aligned at the center. |
![]() |
BottomLeft |
Text is vertically aligned at the bottom, and horizontally aligned on the left. |
![]() |
BottomRight |
Text is vertically aligned at the bottom, and horizontally aligned on the right. |
![]() |
MiddleCenter |
Text is vertically aligned in the middle, and horizontally aligned at the center. |
![]() |
MiddleLeft |
Text is vertically aligned in the middle, and horizontally aligned on the left. |
![]() |
MiddleRight |
Text is vertically aligned in the middle, and horizontally aligned on the right. |
![]() |
NoWrap |
The only flag that can be combines with any of the alignment flags. Specifies that the drawn text should not wrap when the text does not fit in a single line. |
![]() |
TopCenter |
Text is vertically aligned at the top, and horizontally aligned at the center. |
![]() |
TopLeft |
Text is vertically aligned at the top, and horizontally aligned on the left. |
![]() |
TopRight |
Text is vertically aligned at the top, and horizontally aligned on the right. |