RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.AncestorIsValid Function

AncestorIsValid determines if one component is an ancestor of another.

Pascal
function AncestorIsValid(Ancestor: TPersistent; Root: TComponent; RootAncestor: TComponent): Boolean;
C++
Boolean AncestorIsValid(TPersistent * Ancestor, TComponent * Root, TComponent * RootAncestor);

Classes

Call AncestorIsValid to determine if component Root has the specified RootAncestor ancestor. The TObject InheritsFrom method is used to determine this. true is returned if the ancestor is valid, otheriwise false. 

 

TComponent 

TObject 

TPersistent

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!