使用FindComponent方法或DelphiVCL.Application.FindComponent来表示一个给定的组件是否为该组件所拥有。
FindComponent返回Components属性数组中的组件,其名称与AName参数中的字符串相符。使用FindComponent来确定一个给定的组件是否为其他组件所拥有。
组件名称的匹配是不区分大小写的。
如何检查DelphiVCL.Application.FindComponent的属性和方法
让我们用dir()命令浏览DelphiVCL.Application.FindComponent的所有属性、方法和内置属性。
import DelphiVCL
dir(DelphiVCL.Application.FindComponent)
请看我们的Windows命令提示符中的反应。
你也可以用print()命令来阅读DelphiVCL.Application.FindComponent 的简短信息。
print(DelphiVCL.Application.FindComponent)
print(DelphiVCL.Application.FindComponent.__doc__)
请看我们的Windows命令提示符中的响应。
查看DelphiVCL,它可以让你轻松地使用Python为Windows建立GUI。
The postWhat is the FindComponent Method in DelphiVCL.Application?first appeared onPython GUI.