Show: Delphi C++
Display Preferences

Vcl.StdCtrls.TCustomEdit.CopyToClipboard

From RAD Studio API Documentation
Jump to: navigation, search

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


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance