Back to Devexpress

TcxCustomImageList.BeginUpdate Method

vcl-cximagelist-dot-tcxcustomimagelist-19c58c63.md

latest1.4 KB
Original Source

TcxCustomImageList.BeginUpdate Method

Postpones notifications about changes made to the image list until an EndUpdate or CancelUpdate call.

Declaration

delphi
procedure BeginUpdate;

Remarks

Every time a list change occurs, the image list sends notifications to its listeners and raises the OnChange event. Enclose multiple image list modifications between the BeginUpdate and EndUpdate/CancelUpdate procedure calls to avoid excessive listener updates. Unlike EndUpdate, the CancelUpdate procedure discards all pending notifications.

Note

An EndUpdate or CancelUpdate procedure call should follow every BeginUpdate call, even if an exception occurs.

See Also

TcxCustomImageList.Change

TcxCustomImageList Class

TcxCustomImageList Members

cxImageList Unit