当多次改变控件的某些属性(如 高,宽,数据)后,调用该方法以便一次性的刷新相关属性和布局等。较之于一次一次的自动刷新,更有效率。
invalidateDisplayList():void---Calling this method results in a call to the component's validateDisplayList() method before the display list is rendered.
invalidateProperties():void--Calling this method results in a call to the component's validateProperties() method before the display list is rendered.
invalidateSize():void--Calling this method results in a call to the component's validateSize() method before the display list is rendered.
validateNow():void--Validates and updates the properties and layout of this object by immediately calling validateProperties(), validateSize(), and validateDisplayList(), if necessary.
invalidateDisplayList
控件刷新方法详解
最新推荐文章于 2025-08-09 11:20:09 发布
本文详细介绍了用于一次性刷新控件属性和布局的方法,包括invalidateDisplayList、invalidateProperties、invalidateSize及validateNow。这些方法能够提高应用程序效率,避免多次单独刷新带来的性能损耗。
1435

被折叠的 条评论
为什么被折叠?



