System.Classes.TStream.WriteComponentRes

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

void __fastcall WriteComponentRes(const System::UnicodeString ResName, TComponent* const Instance);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Classes.pas
System.Classes.hpp
System.Classes TStream

Description

Writes components and their properties to a stream from a resource file format.

WriteComponentRes is used internally in the streaming system, but can also be called directly when sending data to other applications on disk. WriteComponentRes is used for streaming components that need data, such as a bitmap or icon to be stored in a resource-file format.

WriteComponentRes calls WriteDescendentRes, passing in nil (Delphi) or NULL (C++) as the Ancestor. Therefore, WriteDescendentRes initiates the remainder of the streaming process for a component that, in this case, is not a descendant.

To read a component written with WriteComponentRes, call the ReadComponentRes method.

See Also