[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'StdCtrls' (#lcl)

# TCustomEdit.CutToClipboard

Moves the selected text into the clipboard (removes it from the control).

## Declaration

Source position: stdctrls.pp line 848

`public procedure TCustomEdit.CutToClipboard; virtual;`

## Description

CutToClipboard is a method used to move the current text selection in the control to the clipboard. The selected value is removed from the Text in the control.

CutToClipboard is performed when the Ctrl+X or Shift+Delete key combination is handled in the control (macOS uses Meta+X or Shift+Delete). Pressing Shift+Delete when text is not selected (SelLength is 0) causes the character prior to the editing cursor to be deleted but not copied to the clipboard. No actions are performed if the editing cursor is positioned before the first character in the Text for the control.

CutToClipboard calls the Cut method in the widgetset class when its handle has been allocated.

Use CopyToClipboard to copy the current text selection in the control to the clipboard.

Use PasteFromClipboard to insert the contents of the clipboard at the current position in the edit control.

Use Undo to revert the last editing action performed in the control.