Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Contains valid formatting types that can be specified when rendering text into a [!:Rect] area (the formatting Rect).

Namespace: Visual3D.UI
Assembly: 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

MemberValueDescription
Left0
All text is printed on a single line. The left-most character is aligned with the left edge of the formatting Rect.
Right1
All text is printed on a single line. The right-most character is aligned with the right edge of the formatting Rect.
Center2
All text is printed on a single line. The text is centred horizontally in the formatting Rect.
WordWrapLeft3
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.
WordWrapRight4
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.
WordWrapCentered5
Text is broken into multiple lines no wider than the formatting Rect. Each line is centred horizontally in the formatting Rect.

See Also