User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_layervector.addshape_2_itgis_shape_wordbool

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.

Syntax

// 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
public
  function AddShape_2(
    _shape : ITGIS_Shape;
    _copyfield : WordBool
  ) : ITGIS_Shape;

Parameters

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.

Result

Type Description
ITGIS_Shape Created copy of shape or nil.

Remarks

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.

2020/05/07 01:04