User Tools

Site Tools


Table of Contents

ITGIS_LayerVector.InvalidateScope method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerVector.InvalidateScope | Methods | Properties

Invalidates shapes in the scope.

Available also on: Delphi | .NET | Java | Python.


// C#
public void InvalidateScope(
  WideString _query,
  WideString _style
' VisualBasic
Public Sub InvalidateScope(
  ByVal _query As WideString,
  ByVal _style As WideString
// Oxygene
  procedure InvalidateScope(
    _query : WideString;
    _style : WideString


Name Type Description
_query WideString Query closely mimics the SQL WHERE clause
_style WideString 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.

2022/11/16 01:10

Page Tools