Vcl.Outline.TCustomOutline.SetUpdateState

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetUpdateState(Value: Boolean);

C++

void __fastcall SetUpdateState(bool Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Outline.pas
Vcl.Outline.hpp
Vcl.Outline TCustomOutline

Description

Enables or disables the maintenance of the node indexes.

Call SetUpdateState with Value set to true to block the recomputation of indexes. Call SetUpdateState with Value set to false to recompute all indexes in the outline and enable the maintenance of indexes with every change to the nodes in the outline.

Unlike calls to BeginUpdate and EndUpdate, calls to SetUpdateState do not nest: Calling SetUpdateState with Value set to false always recomputes the indexes regardless of the number of previous calls to SetUpdateState with Value set to true.

Note: Calling SetUpdateState takes precedence over any enabling or disabling of index maintenance provided by BeginUpdate or EndUpdate.

See Also