User Tools

Site Tools


api:dk11:delphi:giseditor.tgis_editor.deletepart_void

Table of Contents

TGIS_Editor.DeletePart method

DK11 for Delphi | GisEditor.TGIS_Editor.DeletePart | Constructors | Methods | Properties | Events

Delete current part from shape.

Available also on: .NET | Java | ActiveX.

Syntax

Implements IGIS_Editor.DeletePart.

// Delphi
public
  procedure DeletePart;
// C++ Builder
public:
  void DeletePart(void);

Remarks

Editing will activate part number 0. If current shape has only one part, then whole shape will be deleted and edition will be stopped.

See CreatePart for example.

Example

Delphi

procedure MyClass.mnuAddPartClick(const _ptg : TGIS_Point3D );
begin
 
  // let's create a new part starting at _ptg
  GIS.Editor.CreatePart( _ptg ) ;
 
  // here we delete our new part
  GIS.Editor.DeletePart;
end;
2020/05/07 01:07

Page Tools