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 is part of a set of flags that dictate the positioning of text, allowing for flexible alignment options.
Usage
Use the RightTop
flag when you need to position text or UI elements at the top right corner of a container or screen. This can be 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);