Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法访问自定义属性 (TCustomAttribute) 广告设计时间。我有一个注册了自定义模块(来自 ICustomModule)的自定义表单。我希望能够访问在设计时为表单定义的任何自定义属性。
简短的回答是否。
TCustomAttribute 直接派生自TObject。
IDE 的工具面板中只有注册的TComponent后代可用。
IDE 没有专用视图来显示在 interface uses 子句中定义的所有单元中引用的所有 TCustomAttribute 后代(但是您可以扩展 IDE,否则编写专家并安装它)。
同样,Object Inspector仅显示表单的属性和事件,但不显示 注释。