TextFlag Right

robot_2Generated
code_blocksInput

Description

The TextFlag.Right field is a member of the TextFlag enumeration in the Sandbox namespace. It specifies that text should be aligned to the right on the X axis. This flag can be used in conjunction with other TextFlag values to control the alignment and positioning of text within a graphical interface.

Usage

Use TextFlag.Right when you need to align text to the right side of its container. This is particularly useful in UI design where text alignment is crucial for layout consistency. You can combine this flag with other TextFlag values to achieve complex text positioning.

Example

// Example of using TextFlag.Right in a text drawing function
Graphics.DrawText("Hello, World!", new Vector2(100, 50), TextFlag.Right);