System.Classes.TStream.WriteComponent
Delphi
procedure WriteComponent(const Instance: TComponent);
C++
void __fastcall WriteComponent(TComponent* const Instance);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TStream |
Description
Initiates the writing of components and their properties to a stream. WriteComponent is used internally in the 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.
See Also