MapWinGIS:Shape DeletePart
From MapWindow GIS
DeletePart
Deletes a part from a shape.
VB.NET Usage
Function DeletePart(PartIndex As Integer) As Boolean
Parameters
|
PartIndex | The index of the part to be deleted. |
| ReturnValue | A boolean value representing the success or failure of deleting the part. |
Sample Code
Private Sub DeletePart()
Dim shape As New MapWinGIS.Shape()
Dim success As Boolean
'Delete the part of index 0 in the shape
success = shape.DeletePart(0)
End Sub
VB 6 Usage
Function DeletePart(PartIndex As Long) As Boolean
Parameters
|
PartIndex | The index of the part to be deleted. |
| ReturnValue | A boolean value representing the success or failure of deleting the part. |
Sample Code
Private Sub DeletePart()
Dim shape As New MapWinGIS.shape
Dim success As Boolean
'Delete the part of index 0 in the shape
success = shape.DeletePart(0)
End Sub
















