MapWinGIS:Shape Part
From MapWindow GIS
Part
Gets or sets the first point index in the specified part.
VB.NET Usage
Property Part(PartIndex As Integer) As Integer
Parameters
|
PartIndex | The index of the part for which the first point index is required. |
| ReturnValue | The index of the first point in the specified part. |
Sample Code
Private Sub PartIndex()
Dim shape As New MapWinGIS.Shape()
Dim pointindex As Integer
'Set the pointindex value
pointindex = 0
'Set the first point in part 0
shape.Part(0) = pointindex
'Get the first point in part 0
pointindex = shape.Part(0)
End Sub
VB 6 Usage
Property Part(PartIndex As Long) As Long
Parameters
|
PartIndex | The index of the part for which the first point index is required. |
| ReturnValue | The index of the first point in the specified part. |
Sample Code
Private Sub PartIndex()
Dim shape As New MapWinGIS.shape
Dim pointindex As Long
'Set the pointindex value
pointindex = 0
'Set the first point in part 0
shape.Part(0) = pointindex
'Get the first point in part 0
pointindex = shape.Part(0)
End Sub
















