User Tools

Site Tools


api:dk11:net:tatukgis.ndk.igis_viewer.lock_void

Table of Contents



IGIS_Viewer.Lock method

DK for .NET | TatukGIS.NDK.IGIS_Viewer.Lock | Methods | Properties

Lock the viewer to batch visual updates.

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

Syntax

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

Remarks

PURPOSE: Prevent intermediate screen updates while multiple viewer or layer changes are performed.

BEHAVIOR: Defers repainting until Unlock is called. This is useful when many visual changes would otherwise trigger repeated redraws. For some layers, unlocking the viewer can be a time-consuming operation.

USAGE: Batch multiple selection changes into a single repaint.

GIS.Lock()
update_selection()
GIS.Unlock()

2026/10/31 23:07

Page Tools