Open main menu

RAD Studio API Documentation β

System.Classes.TStream.WriteDescendent

Delphi

procedure WriteDescendent(const Instance, Ancestor: TComponent);

C++

void __fastcall WriteDescendent(TComponent* const Instance, TComponent* const Ancestor);

Properties

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

Description

Streams components and their properties in inherited forms.

Do not call WriteDescendent directly. WriteDescendent is called automatically by WriteComponent.

WriteDescendent constructs a writer object, then calls the writer object's WriteDescendent method to write the component passed in Instance to the stream. Instance is either an inherited form descended from Ancestor or nil (Delphi) or NULL (C++). However, WriteDescendent is never used to write owned components, only to initiate streaming on the root component.

See Also