TObject.InheritsFrom
Check whether class is an ancestor.
Declaration
Source position: objpash.inc line 226
public
class function InheritsFrom(aclass: TClass) : Boolean;
Description
InheritsFrom returns True if AClass is an ancestor class from the current class, and returns false if it is not.
See also
Name | Description |
---|---|
TClass | Class of TObject . |
ClassInfo | Return a pointer to the type information for this class. |
ClassName | Return the current class name. |
ClassType | Return a "class of" pointer for the current class |