Sign in Join
FPDoc Onlineexperiment

TStream.WriteComponent procedure

Member of TStreampublicIn unit Classes

Write component data to the stream.

Declaration

pascal
procedure WriteComponent(Instance: TComponent); overload
procedure WriteComponent(Instance: TComponent; aWriteUnitname: Boolean)
 ; overload

Description

WriteComponent writes the published properties of Instance to the stream, so they can later be read with 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.