User Tools

Site Tools


Table of Contents

ITGIS_LayerVector.AddShape_2 method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerVector.AddShape_2 | Methods | Properties

Adds a copy of shape and makes it editable.

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


// C#
public ITGIS_Shape AddShape_2(
  ITGIS_Shape _shape,
  WordBool _copyfield
' VisualBasic
Public Function AddShape_2(
  ByVal _shape As ITGIS_Shape,
  ByVal _copyfield As WordBool
) As ITGIS_Shape
// Oxygene
  function AddShape_2(
    _shape : ITGIS_Shape;
    _copyfield : WordBool
  ) : ITGIS_Shape;


Name Type Description
_shape ITGIS_Shape shape to be added
_copyfield WordBool if True, then all fields will be copied (and created if necessary). Default value is False.


Type Description
ITGIS_Shape Created copy of shape or nil.


Use this method to add a new copy of a shape. Depending on _copyfield param, the same field structure is copied to the new shape.

To add a shape, simply create a new shape, choose a layer to export it to, and use ImportLayer method with proper params.

This function creates a copy of a shape passed as a parameter.

2022/11/16 01:10

Page Tools