Description
The TextFlag.None
field is a member of the TextFlag
enumeration in the Sandbox namespace. It represents a default state where no specific text alignment or positioning flags are applied. This can be used as a baseline or starting point when configuring text rendering options.
Usage
Use TextFlag.None
when you want to specify that no additional text alignment or positioning flags should be applied. This is useful when you want to ensure that text is rendered with default settings, or when you want to explicitly clear any previously set flags.
Example
// Example of using TextFlag.None
TextFlag textAlignment = TextFlag.None;
// Use textAlignment in a method that requires text flags
Graphics.DrawText("Hello, World!", position, textAlignment);