[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

TObject.InheritsFrom

Chck wether class is an ancestor.

Declaration

Source position: objpash.inc line 136

public function TObject.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

TObject.ClassName

  

Return the current class name.

TObject.ClassInfo

  

Return a pointer to the type information for this class.

TObject.ClassType

  

Return a "class of" pointer for the current class

TClass

  

Class of TObject.