Vcl.ExtActns.TListControlCopySelection.ExecuteTarget

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ExecuteTarget(Target: TObject); override;

C++

virtual void __fastcall ExecuteTarget(System::TObject* Target);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.ExtActns.pas
Vcl.ExtActns.hpp
Vcl.ExtActns TListControlCopySelection

Description

Copies the selected items in the target list control to the list control specified by Destination.

Do not call the ExecuteTarget method. This method is called automatically when the action fires in response to a user action (for example, when the user selects a menu item or presses a tool button that is linked to this action).

Target is the currently active object when the action fires. It should always be a TCustomListControl descendant (because HandlesTarget returns false if it is not).

ExecuteTarget sets the ListControl property to Target it is not already set. It then calls the list control's ClearSelection method, copying any selected items to the list box or list view specified by the Destination property.

See Also