[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

WriteComponentResFile

Write component properties to a specified resource file

Declaration

Source position: classesh.inc line 1636

procedure WriteComponentResFile(

  const FileName: String;

  Instance: TComponent

);

Description

WriteComponentResFilestarts writing properties of Instanceto the file FileName. It creates a filestream from FileNameand then calls TStream.WriteComponentResmethod to write the state of the component to the stream.

See also

TStream.WriteComponentRes

  

Write resource header and component data to a stream

ReadComponentResFile

  

Read component properties from a specified resource file