System.Classes.TReader.ReadComponents

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ReadComponents(const AOwner, AParent: TComponent;
Proc: TReadComponentsProc);

C++

void __fastcall ReadComponents(TComponent* const AOwner, TComponent* const AParent, TReadComponentsProc Proc);

Properties

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

Description

Reads a list of owned components from the reader object's associated stream.

ReadComponents is used internally by the IDE for design-time streaming. Do not call ReadComponents directly.

ReadComponents first sets the reader object's Root and Owner properties to the component passed in the AOwner parameter and sets its Parent property to AParent. Next ReadComponents reads components by calling the ReadComponent method, passing each returned component to the method passed in Proc.

Note: ReadComponents is used at design-time for clipboard cut and paste of multiple components.