TcxComponentCollection.BeginUpdate Method
Acquires a lock on the collection.
Declaration
procedure BeginUpdate; virtual;
Remarks
Use the BeginUpdate method, if bulk changes are to be made to the collection.
This method is used in combination with the EndUpdate method to wrap a block of statements, which update the collection.
Note
since the execution of the block of statements can exit with either a normal or exception state, these statements and the EndUpdate method should be contained within try… finally… blocks following the BeginUpdate method to ensure that the lock will be released in all cases.
See Also