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

# TEditAction

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

The base class for standard editing actions applied to an edit control.

## Declaration

Source position: stdactns.pas line 35

`type TEditAction = class(TAction)`
`protected`
`procedure Notification(); override;` |  | Handles the notification performed when a component is added to or removed from the class instance.
`public`
`destructor Destroy; override;` |  | Destructor for the class instance.
`function HandlesTarget(); override;` |  | Indicates if the editing action can be used for the specified target control.
`property Control: TCustomEdit; [rw]` |  | The edit control associated with this action.
`end;`

## Inheritance

`TEditAction` |  | The base class for standard editing actions applied to an edit control.
`TAction` |  | TAction is the basic action object used in the LCL.
`TCustomAction` |  | TCustomAction is the ancestor class for TAction.
`TContainedAction` |  | Implements an Action class which has a category and parent action list.
`TBasicAction`
?
`TObject`

## Description

TEditAction is a TAction descendant which defines the base class for standard editing actions applied to an edit control. It provides a Control property with the TCustomEdit control where the action is applied. It provides an overridden HandlesTarget method to determine if the action can be applied to a specified control.

Do not create instances of TEditAction. Use one of the descendent classes that implement UpdateTarget and ExecuteTarget methods, like:

- TEditCut
- TEditCopy
- TEditPaste
- TEditUndo
- TEditSelectAll
- TEditDelete

## See also

TAction |  | TAction is the basic action object used in the LCL.
TCustomAction |  | TCustomAction is the ancestor class for TAction.
TContainedAction |  | Implements an Action class which has a category and parent action list.
TBasicAction