什么意思? published 定义的属性、方法和事件是拥有RTTI能力的, 一般的体现就是能够在对象查看器内查看。
to windindance(风舞轻扬) 什么叫 '拥有RTTI能力的'? 可能就是我的答案﹐請告知。
RTTI: (runtime type identification,运行时间类型辨别) 在DELPHI中,在published中定义的属性或者方法,可以被动态识别。 例如: use typinfo; if IsPublushedProp(Component, 'Color') then SetPropValue(Component, 'Color', clRed);
published 定义的属性、方法和事件是拥有RTTI能力的,
一般的体现就是能够在对象查看器内查看。
(runtime type identification,运行时间类型辨别)
在DELPHI中,在published中定义的属性或者方法,可以被动态识别。
例如:
use typinfo;
if IsPublushedProp(Component, 'Color') then
SetPropValue(Component, 'Color', clRed);