C# Why use SuspendLayout()?

后端 未结 1 1291
我在风中等你
我在风中等你 2020-12-02 13:03

I am reading up about SuspendLayout() and ResumeLayout(). What I can\'t figure out is, why should I do/use this. I know you use it when you add con

相关标签:
1条回答
  • 2020-12-02 13:54

    Basically it's if you want to adjust multiple layout-related properties - or add multiple children - but avoid the layout system repeatedly reacting to your changes. You want it to only perform the layout at the very end, when everything's "ready".

    0 讨论(0)
提交回复
热议问题