MapWinGIS:Shapefile EditDeleteShape
From MapWindow GIS
EditDeleteShape
Deletes a shape from the shapefile. Note: Both the shapefile and the attribute table must be in editing mode to delete a shape from the shapefile.
VB.NET Usage
Function EditDeleteShape(ShapeIndex As Integer) As Boolean
Parameters
|
ShapeIndex | The index of the shape to be deleted from the shapefile. |
| ReturnValue | A boolean value representing the success or failure of deleting the shape from the shapefile. |
Sample Code
Private Sub EditDeleteShape()
Dim sf As New MapWinGIS.Shapefile()
'Switch the shapefile into editing mode
sf.StartEditingShapes()
'Delete shape 0 from the shapefile
sf.EditDeleteShape(0)
End Sub
VB 6 Usage
Function EditDeleteShape(ShapeIndex As Long) As Boolean
Parameters
|
ShapeIndex | The index of the shape to be deleted from the shapefile. |
| ReturnValue | A boolean value representing the success or failure of deleting the shape from the shapefile. |
Sample Code
Private Sub EditDeleteShape()
Dim sf As New MapWinGIS.Shapefile
'Switch the shapefile into editing mode
sf.StartEditingShapes
'Delete shape 0 from the shapefile
sf.EditDeleteShape (0)
End Sub
















