User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.delete_void

Table of Contents

ITGIS_Shape.Delete method

DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Delete | Methods | Properties

Mark the shape as deleted without immediately removing it from the layer.

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

Syntax

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

Remarks

PURPOSE: Supports soft deletion in vector-layer editing workflows where features may be hidden first and removed later.

BEHAVIOR: Sets the deleted state for the shape. The shape can remain in memory and may be physically removed during a later save or commit operation, depending on layer implementation.

USAGE: Use this method when deleting features from an editable layer while preserving deferred-save behavior.

CONSTRAINTS: Deletion can be logical rather than immediate, depending on the backing layer format.

To restore a shape after deleting it call (full restore) :

layer.Revert( shp.Uid ) ;

or (weak restore) :

shp.AddToIndex ;
shp.IsDeleted := False;
2026/07/05 01:25

Page Tools