Skip to content

TStream.WriteComponentRes

Write resource header and component data to a stream.

Declaration

Source position: classesh.inc line 1523

public 
procedure WriteComponentRes(const ResName: string; Instance: TComponent)
                           ;  overload; overload;

procedure WriteComponentRes(const ResName: string; 
                           Instance: TComponent; 
                           aWriteUnitname: Boolean);  overload; overload;

Description

WriteComponentRes writes a ResName resource header to the stream and then calls WriteComponent to write the published properties of Instance to the stream.

This method is intended for use by an IDE that can use it to store forms or datamodules as designed in a Windows resource stream.

See also

Name Description
TStream.WriteComponent Write component data to the stream.
TStream.ReadComponentRes Reads component data and resource header from a stream.