AncestorIsValid determines if one component is an ancestor of another.
function AncestorIsValid(Ancestor: TPersistent; Root: TComponent; RootAncestor: TComponent): Boolean;
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!
|