DK for ActiveX | TatukGIS_XDK11.ITGIS_Shape.CreateCopy | Methods | Properties
Create an independent deep copy of the shape geometry, attributes, and style state.
// C# public ITGIS_Shape CreateCopy();
' VisualBasic Public Function CreateCopy() As ITGIS_Shape
// Oxygene public function CreateCopy : ITGIS_Shape;
| Type | Description |
|---|---|
| ITGIS_Shape | New shape instance containing a deep copy of the current shape. |
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.