Skip to main content

ScrollBarBase.CancelUpdate() Method

Unlocks the control after a ScrollBarBase.BeginUpdate method call without causing immediate repainting.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.dll

Declaration

public void CancelUpdate()

Remarks

Once the ScrollBarBase.BeginUpdate method is called, modifying control settings does not lead to the recalculation of view information and control repainting. This is used to perform several modifications without repainting the control after each one individually. After all desired operations have been performed, call the ScrollBarBase.EndUpdate or CancelUpdate method. The first must be called if the control needs to be repainted after applying changes. If the control’s appearance is not modified as a result of applying changes, it is better to call the CancelUpdate method. This method unlocks the control without recalculating view information, and thus without repainting it.

See Also