Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Assembly: Visual3D.Engine (in Visual3D.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Contains valid formatting types that can be specified when rendering text into a [!:Rect] area (the formatting Rect).
Namespace: Visual3D.UIAssembly: Visual3D.Engine (in Visual3D.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# | Visual Basic |
public enum HorizontalTextAlignment
Public Enumeration HorizontalTextAlignment
Members
| Member | Value | Description |
|---|---|---|
| Left | 0 |
All text is printed on a single line.
The left-most character is aligned with the left edge of the formatting Rect.
|
| Right | 1 |
All text is printed on a single line.
The right-most character is aligned with the right edge of the formatting Rect.
|
| Center | 2 |
All text is printed on a single line.
The text is centred horizontally in the formatting Rect.
|
| WordWrapLeft | 3 |
Text is broken into multiple lines no wider than the formatting Rect.
The left-most character of each line is aligned with the left edge of the formatting Rect.
|
| WordWrapRight | 4 |
Text is broken into multiple lines no wider than the formatting Rect.
The right-most character of each line is aligned with the right edge of the formatting Rect.
|
| WordWrapCentered | 5 |
Text is broken into multiple lines no wider than the formatting Rect.
Each line is centred horizontally in the formatting Rect.
|