RAD Studio VCL Reference
TWriter.WriteDescendent Method

Triggers the writing of descendant components in inherited forms.

procedure WriteDescendent(Root: TComponent; AAncestor: TComponent);
__fastcall WriteDescendent(TComponent * Root, TComponent * AAncestor);

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!