User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_layervector.invalidatescope_string_string

Table of Contents

TGIS_LayerVector.InvalidateScope method

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

Invalidate shapes in the scope.

Available also on: .NET | Java | ActiveX.

Syntax

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

Parameters

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.

Remarks

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

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

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.).

2018/02/17 00:09