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);

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

 

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