System.Classes.AncestorIsValid

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AncestorIsValid(const Ancestor: TPersistent; const Root, RootAncestor: TComponent): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall AncestorIsValid(TPersistent* const Ancestor, TComponent* const Root, TComponent* const RootAncestor);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

AncestorIsValid determines if one component is an ancestor of another.

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, otherwise false.

See Also