User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_layervector.recalcextent_void

Table of Contents

TGIS_LayerVector.RecalcExtent method

DK11 for .NET | TatukGIS.NDK.TGIS_LayerVector.RecalcExtent | Constructors | Fields | Methods | Properties | Events

Recalculate extent.

Available also on: Delphi | Java.

Overrides TGIS_Layer.RecalcExtent.

Syntax

// C#
public void RecalcExtent();
' VisualBasic
Public Sub RecalcExtent()
// Oxygene
public
  procedure RecalcExtent; override;

Remarks

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.

References

2017/09/04 11:28