DesktopTextControl.Copy

From Xojo Documentation

Method

DesktopTextControl.Copy()

New in 2021r3

Supported for all project types and targets.

Copies the selected text in the TextArea to the Clipboard, including the styled text information.

Example

This example copies the selected text and places it on the Clipboard.

TextArea1.SelectionStart = 0
TextArea1.SelectionLength = 10
TextArea1.Copy