The Components property or DelphiVCL.Application.Components in Windows app development is used to list all components owned by the component. Of then this is used to programmatically iterate through all the components on a form or panel in order to update them in some way.
Use Components to access any of the components owned by this component or form. The Components property is most useful when referring to owned components by number rather than name. It is also used internally for the iterative processing of all owned components.
The index ranges from 0 to ComponentCount minus 1.
Let’s browse all the properties and methods of the DelphiVCL.Application.Components using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.Components) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.Components using the print() command:
1 2 |
print(DelphiVCL.Application.Components) print(DelphiVCL.Application.Components.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.