uid: Terminal.Gui.Text
Text namespace provides advanced text processing, formatting, and Unicode handling capabilities.@Terminal.Gui.Text contains the text processing and formatting system for Terminal.Gui applications. This namespace handles Unicode text rendering, text measurement, formatting with alignment and wrapping, and hot key processing for accessible user interfaces.
The text system supports complex text scenarios including bidirectional text, combining characters, wide characters, and sophisticated formatting options with both horizontal and vertical alignment capabilities.
// Create a text formatter with default settings
var formatter = new TextFormatter();
// Format a string with alignment
var formatted = formatter.Format("Hello, World!", 10, 10, TextAlignment.Center);