TStream.ReadComponent
TStream
Initiates streaming of components and their properties.
function ReadComponent(Instance: TComponent): TComponent;
Description
ReadComponent is called indirectly by the global routine ReadComponentRes, by the ReadComponentRes method, or it can be called directly to initiate component streaming.
ReadComponent reads data values from the stream and assigns them to Instances properties. It then constructs a reader object and calls the readers ReadRootComponent method to read Instances property values and construct child objects defined in the stream as children of the Instance. ReadComponent returns the component.
If Instance is nil, ReadComponent constructs a component based on the type information in the stream and returns the newly-constructed component.
|