Specifies the horizontal alignment of the content of text-based objects.
Namespace:
DYMO.Label.FrameworkAssembly: DYMO.Label.Framework (in DYMO.Label.Framework.dll) Version: 1.0.0.0 (8.4.0.1475)
Syntax
| C# |
|---|
public enum TextAlignment |
| Visual Basic (Declaration) |
|---|
Public Enumeration TextAlignment |
| Visual C++ |
|---|
public enum class TextAlignment |
Members
| Member name | Value | Description | |
|---|---|---|---|
| Left | 0 | Text is left aligned. | |
| Center | 1 | Text is centered. | |
| CenterBlock | 2 |
Lines are left aligned, but the starting position of each line is calculated as follows: (ObjectWidth - MaxLineWidth) / 2. In other words, the longest line is centered and all other lines are left-aligned against the longest line. | |
| Right | 3 | Text is right aligned. |
Remarks
Note: For RightToLeft flow, 'left' means 'right' and 'right' means 'left'.