Description
The TextFlag.Left
field is a member of the TextFlag
enumeration in the Sandbox namespace. It is used to specify that text should be aligned to the left on the X axis. This flag can be combined with other flags to achieve complex text alignment and positioning.
Usage
Use TextFlag.Left
when you want to align text to the left side of its container. This is particularly useful in UI design where text alignment is crucial for layout consistency.
Example
// Example of using TextFlag.Left in a text drawing function
Graphics.DrawText("Hello, World!", position, font, color, TextFlag.Left);