DesignIntf.IDesigner60.GetComponentNames

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetComponentNames(TypeData: PTypeData; Proc: TGetStrProc);

C++

virtual void __fastcall GetComponentNames(System::Typinfo::PTypeData TypeData, System::Classes::TGetStrProc Proc) = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
DesignIntf.pas
DesignIntf.hpp
DesignIntf IDesigner60

Description

Executes a callback for every component that can be assigned a property of a specified type.

Use GetComponentNames to call the procedure specified by the Proc parameter for every component that can be assigned a property that matches the TypeData parameter. For each component, Proc is called with its S parameter set to the name of the component. This parameter can be used to obtain a reference to the component by calling the GetComponent method.

Note: GetComponentNames calls Proc for components in units that are in the uses clause of the current root object's unit (Delphi) or included by that unit (C++), as well as the entity that is the value of Root.

See Also