User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_layervector.createshape_tgis_shapetype

Table of Contents

TGIS_LayerVector.CreateShape(TGIS_ShapeType) method

DK11 for Delphi | GisLayerVector.TGIS_LayerVector.CreateShape | Overloads | Constructors | Fields | Methods | Properties | Events

Creates a new shape and makes it editable.

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

Syntax

// Delphi
public
  function CreateShape(
    const _type : TGIS_ShapeType
  ) : TGIS_Shape; overload;
// C++ Builder
public:
  TGIS_Shape* CreateShape(
    TGIS_ShapeType* const _type
  ) /* overload */;

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

Result

Type Description
TGIS_Shape Newly created shape or nil.

References

2022/11/16 01:22

Page Tools