User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shape.createcopy_void

Table of Contents



TGIS_Shape.CreateCopy method

DK for Delphi | GisLayerVector.TGIS_Shape.CreateCopy | Constructors | Fields | Methods | Properties

Create an independent deep copy of the shape geometry, attributes, and style state.

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

Syntax

// Delphi
public
  function CreateCopy : TGIS_Shape; virtual;
// C++ Builder
public:
  virtual TGIS_Shape* CreateCopy(void);

Result

Type Description
TGIS_Shape New shape instance containing a deep copy of the current shape.

Remarks

PURPOSE: Duplicate a shape so it can be edited, stored, or used in undo/redo workflows without modifying the original geometry.

BEHAVIOR: Copies the shape geometry, field values, and style- related properties into a new instance. The copied shape is not added to any layer or spatial index automatically.

CONSTRAINTS: The caller owns the returned shape instance. Large or multipart geometry may require substantial additional memory.

References

2026/07/11 00:38

Page Tools