Applies to
Declaration
procedure CopyToClipboard;
procedure CutToClipboard;
procedure PasteFromClipboard;
Description
These methods do the same thing as the similarly named methods of TMemo. The CopyToClipboard method copies the text selected in the control to the Clipboard, replacing any text that exists there. If no text is selected, nothing is copied. The CutToClipboard method deletes the text selected in the control and copies it to the Clipboard, replacing any text that exists there. If no text is selected, nothing is copied. If property Options includes member pmoPlainClipboard, static control codes are stripped before the content is sent to the clipboard.
The PasteFromClipboard method replaces the selected text in the control with the contents of the Clipboard. If no text is selected (SelLength=0), the Clipboard content is inserted where the cursor is positioned. If there is no text in the Clipboard, nothing happens.