DesignIntf.IDesigner60.DeleteSelection

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
DesignIntf.pas
DesignIntf.hpp
Unit: DesignIntf
Parent: IDesigner60

Delphi

procedure DeleteSelection(ADoAll: Boolean = False);

C++

virtual void __fastcall DeleteSelection(bool ADoAll = false) = 0 ;

Description

Deletes the selected component or components

Call DeleteSelection to remove the selected components in the designer and free their memory.

ADoAll controls what objects are freed. When ADoAll is false, components are only freed if the deletion can be undone. When ADoAll is true, all components are deleted, including any components that can't be recovered by an Undo operation.

To remove the components from the set of selected components without deleting them, use SetSelections instead. To delete the contents of the components but not the components themselves, use ClearSelection instead.

See Also