Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]


Write component data to the stream.


Source position: classesh.inc line 1119

public procedure TStream.WriteComponent(

  Instance: TComponent

); overload;

procedure TStream.WriteComponent(

  Instance: TComponent;

  aWriteUnitname: Boolean

); overload;


WriteComponent writes the published properties of Instance to the stream, so they can later be read with TStream.ReadComponent. This method is intended to be used by an IDE, to preserve the state of a form or datamodule as designed in the IDE.

WriteComponent simply calls WriteDescendant with Nil ancestor.

See also



Reads component data from a stream.



Write resource header and component data to a stream.

Documentation generated on: Jul 24 2023