Determines the relationship of two object types.
class function InheritsFrom(AClass: TClass): Boolean;
Description
Use InheritsFrom to determine if a particular class type is an ancestor of
an object. InheritsFrom returns True if the object type specified in the AClass
parameter is an ancestor of the object type or the type of the object itself.
Otherwise, it returns False.
Note: The is and as operators use InheritsFrom in their implementations.
The is operator, however, can only determine the inheritance relationship of
an instance. As a class method, InheritsFrom can determine the relationship
of class references.