/img/help/home.gif

TStream.WriteComponent

TStream


Initiates the writing of components and their properties to a stream.

 

procedure WriteComponent(Instance: TComponent);

 

Description

WriteComponent is used internally in the Delphi component streaming system, but can also be called directly when writing components to memory streams or database blobs.

 

WriteComponent constructs a writer object and calls its WriteRootComponent method to write the component specified by Instance, and its owned objects, to the stream.