System.Classes.TWriter.WriteDescendent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure WriteDescendent(const Root: TComponent; const AAncestor: TComponent);

C++

void __fastcall WriteDescendent(TComponent* const Root, TComponent* const AAncestor);

Properties

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

Description

Triggers the writing of descendant components in inherited forms.

Never call WriteDescendent directly. It is part of a sequence of calls used for streaming descendant components in inherited forms.

WriteDescendent sets the writer object's Ancestor and RootAncestor properties to the value passed in AAncestor, sets the Root property to the value passed in Root, then calls WriteSignature and WriteComponent to write Root and any components it owns to the writer object's stream.

WriteDescendent differs from WriteComponent in that, by setting Ancestor, it uses Ancestor's property values as the defaults, rather than those defined by Root's type.

See Also