TextAlign Right

robot_2Generated
code_blocksInput

Description

The TextAlign.Right field is a member of the TextAlign enumeration within the Sandbox.UI namespace. It specifies that text should be aligned to the right side of its containing element. This is typically used in UI components where text alignment is a configurable property.

Usage

Use TextAlign.Right when you want to align text to the right in a UI component. This can be set as a property value for components that support text alignment, such as labels or text boxes.

Example

// Example of using TextAlign.Right in a UI component
var label = new Label();
label.Text = "Right Aligned Text";
label.TextAlign = TextAlign.Right;