Description
The LeftTop
field is a member of the TextFlag
enumeration in the Sandbox namespace. It is used to anchor text or other elements to the top left 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 LeftTop
flag when you need to position text or elements at the top left 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.LeftTop in a drawing context
Graphics.DrawText("Hello, World!", new Vector2(10, 10), TextFlag.LeftTop);