System.Classes.TReader.ReadComponent
Delphi
function ReadComponent(Component: TComponent): TComponent;
C++
TComponent* __fastcall ReadComponent(TComponent* Component);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TReader |
Description
Reads the specified Component
at the current Position of the reader stream and returns the retrieved 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 the component's methods.
ReadComponent advances the reader Position after the last byte it has read.