MapWinGIS:Shape Create
From MapWindow GIS
Create
Creates a new shape of the specified type.
VB.NET Usage
Function Create(ShpType As MapWinGIS.ShpfileType) As Boolean
Parameters
|
ShpType | The type of the shape to be created. |
| ReturnValue | A boolean value representing the success or failure of creating the new shape. |
Sample Code
Private Sub CreateShape()
Dim shape As New MapWinGIS.Shape()
Dim success As Boolean
'Create a new polygon shape
success = shape.Create(MapWinGIS.ShpfileType.SHP_POLYGON)
End Sub
VB 6 Usage
Function Create(ShpType As ShpfileType) As Boolean
Parameters
|
ShpType | The type of the shape to be created. |
| ReturnValue | A boolean value representing the success or failure of creating the new shape. |
Sample Code
Private Sub CreateShape()
Dim shape As New MapWinGIS.shape
Dim success As Boolean
'Create a new polygon shape
success = shape.Create(SHP_POLYGON)
End Sub
















