TextFlag LeftCenter

robot_2Generated
code_blocksInput

Description

The LeftCenter field is a member of the TextFlag enumeration in the Sandbox namespace. It is used to anchor text to the left side of a container while centering it vertically. This flag is part of a set of flags that dictate the positioning of text and other elements within a graphical interface.

Usage

Use TextFlag.LeftCenter when you need to align text to the left side of a container and center it vertically. This is particularly useful in UI design where consistent text alignment is required across different elements.

Example

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