User Tools

Site Tools


Table of Contents

TGIS_LayerVector.InvalidateScope method

DK11 for Delphi | GisLayerVector.TGIS_LayerVector.InvalidateScope | Constructors | Fields | Methods | Properties | Events

Invalidates shapes in the scope.

Available also on: .NET | Java | ActiveX.


// Delphi
  procedure InvalidateScope(
    const _query : String;
    const _style : String
  ); overload;
// C++ Builder
  void InvalidateScope(
    const UnicodeString _query,
    const UnicodeString _style
  ) /* overload */;


Name Type Description
_query String Query closely mimics the SQL WHERE clause
_style String Name of style to be used. If Empty, default style will be used. Important to correctly calculate shape sizes.


Use this method to invalidate only shapes that meet the scope criteria (even shapes that are not visible!). If changing some kind of shapes, we can refresh only the chosen shapes in order to improve performance.

The routine finds all shapes meeting given _query criteria executes its Invalidate method.

When using this method, never call any function which FindFirst..FindNext (i.e., any function which iterates through the shapes using it). So never use inside an like Locate, PaintScope etc.

2020/05/07 01:09

Page Tools