MapWinGIS:Shape ShapeType
From MapWindow GIS
ShapeType
Gets or sets the type of the shape. Note: The shape's type must match the type of the shapefile the shape is to be added to except for shapes of type SHP_NULLSHAPE.
See also ShpfileType
VB.NET Usage
Property ShapeType() As MapWinGIS.ShpfileType
Parameters
|
ReturnValue | The shapefile type of the shape. This shapefile type must match the type of any shapefile the shape is added to. |
Sample Code
Private Sub ShapeType()
Dim shape As New MapWinGIS.Shape()
Dim shapetype As New MapWinGIS.ShpfileType()
'Set the type of the shape
shape.ShapeType = MapWinGIS.ShpfileType.SHP_POLYGON
'Get the type of the shape
shapetype = shape.ShapeType
End Sub
VB 6 Usage
Property ShapeType() As ShpfileType
Parameters
|
ReturnValue | The shapefile type of the shape. This shapefile type must match the type of any shapefile the shape is added to. |
Sample Code
Private Sub shapetype()
Dim shape As New MapWinGIS.shape
Dim shapetype As New MapWinGIS.ShpfileType
'Set the type of the shape
shape.shapetype = MapWinGIS.ShpfileType.SHP_POLYGON
'Get the type of the shape
shapetype = shape.shapetype
End Sub
















