Vcl.StdCtrls.TCustomEdit.CopyToClipboard
Delphi
procedure CopyToClipboard;
C++
void __fastcall CopyToClipboard();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TCustomEdit |
Description
Copies the selected text in the edit control to the Clipboard in CF_TEXT format.
Use CopyToClipboard to replace the contents of the Clipboard with the selected text. CopyToClipboard does not clear the Clipboard if no text is selected. If no text is selected, CopyToClipboard does nothing.
Note: Calling CopyToClipboard does the same thing as sending the edit control a WM_COPY message.
See Also