MapWinGIS:Shapefile Shape
From MapWindow GIS
Shape
Gets the shape in the shapefile specified by the index of the shape. Note: Null will be returned if an invalid shape index is specified
See also Shape
VB.NET Usage
ReadOnly Property Shape(ShapeIndex As Integer) As MapWinGIS.Shape
Parameters
|
ShapeIndex | The index of the shape to be returned. |
| ReturnValue | The shape in the shapefile specified by the shape index. |
Sample Code
Private Sub ShapefileShape()
Dim sf As New MapWinGIS.Shapefile()
Dim shape As New MapWinGIS.Shape()
'Get shape 0 in the shapefile
shape = sf.Shape(0)
End Sub
VB 6 Usage
ReadOnly Property Shape(ShapeIndex As Long) As Shape
Parameters
|
ShapeIndex | The index of the shape to be returned. |
| ReturnValue | The shape in the shapefile specified by the shape index. |
Sample Code
Private Sub ShapefileShape()
Dim sf As New MapWinGIS.Shapefile
Dim shape As New MapWinGIS.shape
'Get shape 0 in the shapefile
shape = sf.shape(0)
End Sub
















