System.Classes.TBasicAction.HandlesTarget

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function HandlesTarget(Target: TObject): Boolean; virtual;

C++

virtual bool __fastcall HandlesTarget(System::TObject* Target);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TBasicAction

Description

Introduces an interface for verifying that the type and state of a target component or control are appropriate for the action.

HandlesTarget does nothing in TBasicAction. HandlesTarget was introduced in TBasicAction so that descendants can override it to check the type and state of a target. HandlesTarget can verify any information about a target that is relevant for the action. HandlesTarget returns True if the target meets the specified criteria, False otherwise.

See Also