RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TReader.ReadComponent Method

Reads the component specified by Instance from the stream and returns the component.

Pascal
function ReadComponent(Component: TComponent): TComponent;
C++
__fastcall TComponent * ReadComponent(TComponent * Component);

ReadComponent is called by ReadRootComponent to read each of the components owned by Root. Users would not need to call ReadComponent directly. 

ReadComponent handles the loading and initialization process for each component. After loading all the components in the list, ReadComponents calls the Loaded method of each loaded component in the order it read them. ReadComponent manages the complexities of reading the component from the stream through calls to other reader methods and to the component's methods. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!