Vcl.ComCtrls.TTreeNodes.BeginUpdate
Delphi
procedure BeginUpdate;
C++
void __fastcall BeginUpdate();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TTreeNodes |
Description
Prevents the updating of the tree view until the EndUpdate method is called.
BeginUpdate prevents the screen from being repainted when new nodes are added, deleted, or inserted. Tree nodes affected by the changes will have invalid Index values until EndUpdate is called.
Use BeginUpdate to prevent screen repaints and to speed processing time while adding nodes to the tree view.
Note: Calls to BeginUpdate are cumulative; for every call to BeginUpdate there must be a corresponding call to EndUpdate.
See Also
Code Examples