Table of Contents

Property Text

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Text

The text displayed by the View.

public virtual string Text { get; set; }

Property Value

string

Remarks

The text will be drawn before any subviews are drawn.

The text will be drawn starting at the view origin (0, 0) and will be formatted according to TextAlignment and TextDirection.

The text will word-wrap to additional lines if it does not fit horizontally. If GetContentSize() 's height is 1, the text will be clipped.

If Width or Height are using Text, the GetContentSize() will be adjusted to fit the text.

When the text changes, the TextChanged is fired.