RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWriter.WriteDescendent Method

Triggers the writing of descendant components in inherited forms.

Pascal
procedure WriteDescendent(Root: TComponent; AAncestor: TComponent);
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!