Delphi What Is The InheritsFrom Method?

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
What Is The InheritsFrom Method?
By Muhammad Azizul Hakim September 14, 2021

InheritsFrom or DelphiVCL.Application.InheritsFrom method determines the relationship between two object types.

Use InheritsFrom to determine whether a particular class type or object is an instance of a class or one of its descendants. 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.

What are the properties and methods of the InheritsFrom method?​

Let’s browse all the properties and methods of the DelphiVCL.Application.InheritsFrom using dir() command:
Python:
import DelphiVCL
 
dir(DelphiVCL.Application.InheritsFrom)
See the responses in our Windows command prompt:
1631715246963.png

How do I see more information about the InheritsFrom method?​

You can also read short information about the DelphiVCL.Application.InheritsFrom using the print() command:
Python:
print(DelphiVCL.Application.InheritsFrom)
print(DelphiVCL.Application.InheritsFrom.__doc__)
See the responses in our Windows command prompt:
1631715285086.png