The ComponentCount property or DelphiVCL.Application.ComponentCount is used to indicate the number of components owned by the component.
Use the ComponentCount property to determine the number of components owned by a component, for example, when iterating through the components list to perform an action on all owned components. The ComponentCount property equals the number of items in the components list. This value is one more than the highest Components index, because the first components index is 0.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.ComponentCount using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.ComponentCount) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.ComponentCount using the print() command:
1 2 |
print(DelphiVCL.Application.ComponentCount) print(DelphiVCL.Application.ComponentCount.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.