DesktopTextControl.Paste

From Xojo Documentation

Method

DesktopTextControl.Paste()

New in 2021r3

Supported for all project types and targets.

Pastes the styled or unstyled text on the Clipboard into the editing area at the insertion point, adding the text to the existing text.

Notes

When pasting into a DesktopTextArea, if the text is styled, the style information is preserved.

Example

This example pastes the contents of the Clipboard into TextArea2 at the insertion point.

TextArea2.Paste