Table of Contents

Method OnPaste

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

OnPaste(string)

Override to insert sanitized paste text into the view. The default returns false because a plain View has no text model. Text-input views (TextField) override this to perform the insertion.

protected virtual bool OnPaste(string text)

Parameters

text string

The sanitized text to insert. Never null or empty.

Returns

bool

true if the view consumed the paste.