The DestroyComponents method or DelphiVCL.Application.DestroyComponents is used to destroy all owned components.
DestroyComponents iterates through the components owned by the component, removing each from the list of owned components and destroying it.
It is not necessary to call DestroyComponents directly. DestroyComponents is automatically called when the component is destroyed.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.DestroyComponents using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.DestroyComponents) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.DestroyComponents using the print() command:
1 2 |
print(DelphiVCL.Application.DestroyComponents) print(DelphiVCL.Application.DestroyComponents.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.