Vcl.StdCtrls.TCustomEdit.PasteFromClipboard
Delphi
procedure PasteFromClipboard;
C++
void __fastcall PasteFromClipboard();
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TCustomEdit |
Description
Pastes the contents of the Clipboard into edit control, replacing the current selection.
Use PasteFromClipboard to replace the selected text with the contents of the Clipboard, or, if no text is selected, to insert the contents of the Clipboard at the cursor. If the Clipboard is empty, or if it does not contain anything in CF_TEXT format, PasteFromClipboard does nothing.
Note: Calling PasteFromClipboard does the same thing as sending the edit control a WM_PASTE message.
See Also