Table of Contents

Method SetTextDirect

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

SetTextDirect(string)

Sets the Text backing field directly without raising TextChanging or TextChanged events and without invoking the OnTextChanging(string) or OnTextChanged() virtual methods.

protected void SetTextDirect(string value)

Parameters

value string

The new text value to store.

Remarks

Use this method in derived views that maintain an internal text model (e.g., an editor buffer) and need to keep Text in sync after internal edits without re-entering the CWP flow.