Delphi What is the FindComponent Property in DelphiVCL.Application?

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
What is the FindComponent Property in DelphiVCL.Application?
By Muhammad Azizul Hakim July 20, 2021

Use the FindComponent property or DelphiVCL.Application.FindComponent to indicate whether a given component is owned by the component.

FindComponent returns the component in the Components property array with the name that matches the string in the AName parameter. Use FindComponent to determine whether a given component is owned by another.

Component name matches are not case-sensitive.

How to examine the properties and methods of the DelphiVCL.Application.FindComponent​

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.FindComponent using dir() command:
Python:
import DelphiVCL
 
dir(DelphiVCL.Application.FindComponent)
See the responses in our Windows command prompt:
1626792848347.png
You can also read short information about the DelphiVCL.Application.FindComponent using the print() command:
Python:
print(DelphiVCL.Application.FindComponent)
print(DelphiVCL.Application.FindComponent.__doc__)
See the responses in our Windows command prompt:
1626792883646.png