Table of Contents

Method RaisePasteEvent

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

RaisePasteEvent(string)

Raises the Paste event with text, then dispatches the paste to the focused view by invoking Paste with a dedicated command-context paste payload if not already handled. The default Paste handler on View sanitizes the payload, raises Pasting, and delegates insertion to the focused view's OnPaste(string) override. If the focused view consumes the paste and reports a final-text segment for the pasted range, the handler raises Pasted.

bool RaisePasteEvent(string text)

Parameters

text string

The pasted content with bracketing markers stripped.

Returns

bool

true if the paste was handled.