// Delphi public procedure RecalcExtent; override;
// C++ Builder public: virtual void RecalcExtent(void);
Use this method to recalculate extent based on real shapes. Can be extremely costly. Internally it iterates all not deleted shapes checking their extent and calculating the maximum extent.
To improve performance a layer section visibility can be used to choose layer.
When using this operation, never call any function which uses FindFirst..FindNext (any function which iterates through the shapes using it - so never use inside an operation like Locate, PaintScope etc.).
See RevertAll for example.