Table of Contents

Method GetPastedEventText

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

GetPastedEventText(string)

Override to provide the text for Pasted after OnPaste(string) has run.

protected virtual string? GetPastedEventText(string text)

Parameters

text string

The sanitized text passed to OnPaste(string).

Returns

string

The text to expose through Pasted; return null to suppress the event.

Remarks

The default returns the sanitized text passed into OnPaste(string). Views that rewrite or partially reject the paste during insertion can override this to report the segment of final view text that corresponds to the pasted range.