TextFlag Bottom

book_4_sparkGenerated
code_blocksInput

Description

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 graphical interface.

Usage

Use the Bottom flag when you want to align text or elements to the bottom of a container or area. 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

// Example of using TextFlag.Bottom to align text
Graphics.DrawText("Hello, World!", new Vector2(100, 100), TextFlag.Bottom | TextFlag.CenterHorizontally);