RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TReader.ReadComponents Method

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

Pascal
procedure ReadComponents(AOwner: TComponent; AParent: TComponent; Proc: TReadComponentsProc);
C++
__fastcall ReadComponents(TComponent * AOwner, TComponent * AParent, TReadComponentsProc Proc);

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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!