User Tools

Site Tools


Table of Contents

ITGIS_LayerVector.CreateShape_2 method

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

Creates a new shape and makes it editable

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


// C#
public ITGIS_Shape CreateShape_2(
  TGIS_ShapeType _type,
  TGIS_DimensionType _dim
' VisualBasic
Public Function CreateShape_2(
  ByVal _type As TGIS_ShapeType,
  ByVal _dim As TGIS_DimensionType
) As ITGIS_Shape
// Oxygene
  function CreateShape_2(
    _type : TGIS_ShapeType;
    _dim : TGIS_DimensionType
  ) : ITGIS_Shape;


Name Type Description
_type TGIS_ShapeType type of shape to be created; it must be a type supported by the layer; if TGIS_ShapeType.Unknown, then the default shape type will be created
_dim TGIS_DimensionType dimension; it must be a type supported by the layer


Type Description
ITGIS_Shape Newly created shape or nil


Use this method to create a new shape. Depending on _type param, a different shape will be created. If the shape type is not supported by the layer, nil is returned. Otherwise an editable shape is returned.

To create a shape, simply create a new layer, or choose an existing layer and use CreateShape method with a proper shape type as a param.

2022/11/16 01:10

Page Tools