Description
The TextAlign.Left
field is a member of the TextAlign
enumeration within the Sandbox.UI
namespace. It specifies that text should be aligned to the left side of its containing element. This is commonly used in UI design to control the alignment of text elements.
Usage
Use TextAlign.Left
when you want to align text to the left within a UI component. This can be particularly useful when setting styles for text elements in a user interface, ensuring that text starts from the left edge of its container.
Example
// Example of using TextAlign.Left in a UI component
var label = new Label();
label.Text = "Hello, World!";
label.Style.TextAlign = TextAlign.Left;