Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxDockingController.BeginUpdate Method

In This Article

Prevents the dock controls layout from being updated until the EndUpdate method is called.

#Declaration

Delphi
procedure BeginUpdate;

#Remarks

The BeginUpdate and EndUpdate methods should be used in combination. The first increments the internal counter (which is initially zero) by one. The second decrements the counter. Layout updates are only allowed while the counter value is zero. Thus, you can use the BeginUpdate and EndUpdate methods to perform batch layout modifications.

Suppose you need to change the layout of dock controls via code by performing three sequential docking operations. By default, the layout will be updated after each modification. To avoid this, enclose your code into the BeginUpdate and EndUpdate method calls. In this case, the layout will be updated only once which will result in a performance benefit.

See Also