procedure WriteComponent(Component: TComponent);
void __fastcall WriteComponent(TComponent* Component);
Writes the component specified by Component to a stream.
Note: The sequence of events is as follows: the writer's WriteComponent method calls the Component's WriteState method, which calls the writer's WriteData method. That method writes the properties for each child component, then calls WriteComponent.
Because the Component's WriteState is virtual, it is the Component's only opportunity to prepare itself to be streamed (i.e. to consolidate its data.)