RAD Studio VCL Reference
TReader.ReadComponent Method

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

function ReadComponent(Component: TComponent): TComponent;
__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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!