The Bottom
field of the TextFlag
enumeration is used to anchor text or other elements to the bottom on the Y axis. This flag is part of the Sandbox.TextFlag
enum, which provides various options for positioning text within a given area.
The Bottom
field of the TextFlag
enumeration is used to anchor text or other elements to the bottom on the Y axis. This flag is part of the Sandbox.TextFlag
enum, which provides various options for positioning text within a given area.
Use the Bottom
flag when you want to align text to the bottom of its container. This can be combined with other flags from the TextFlag
enum to achieve the desired alignment. For example, combining Bottom
with CenterHorizontally
will align the text to the bottom center of the container.
// Example of using TextFlag.Bottom Graphics.DrawText("Hello, World!", new Vector2(100, 100), TextFlag.Bottom | TextFlag.CenterHorizontally);