User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_layervector.createshape_2_tgis_shapetype_tgis_dimensiontype

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.

Syntax

// 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
public
  function CreateShape_2(
    _type : TGIS_ShapeType;
    _dim : TGIS_DimensionType
  ) : ITGIS_Shape;

Parameters

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

Result

Type Description
ITGIS_Shape Newly created shape or nil

Remarks

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.

2020/05/22 21:50