Table of Contents

Method OnTextChanging

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

OnTextChanging(string)

Called before the Text changes. Invokes the TextChanging event, which can be cancelled.

protected override bool OnTextChanging(string newText)

Parameters

newText string

The proposed new text value.

Returns

bool

true if the text change should be cancelled; otherwise false.

Remarks

The base implementation raises the TextChanging event. Override in derived views to perform validation or fire control-specific pre-change events.