TextFlag RightTop

robot_2Generated
code_blocksInput

Description

The RightTop field is a member of the TextFlag enumeration in the Sandbox namespace. It is used to anchor text or other elements to the top right corner of a designated area. This flag can be combined with other TextFlag values to achieve complex text alignment and positioning.

Usage

Use the RightTop flag when you need to position text or UI elements at the top right corner of a container. This is particularly useful in UI design where specific alignment is required for aesthetic or functional purposes.

Example

// Example of using TextFlag.RightTop
Graphics.DrawText("Hello, World!", new Vector2(100, 100), TextFlag.RightTop);