MapWinGIS:ShapeNetwork ParentIndex
From MapWindow GIS
ParentIndex
Gets the index of the parent of the current shape. If the current shape is the outlet shape in the shape network, -1 will be returned.
VB.NET Usage
Property ParentIndex() Integer
Parameters
|
ReturnValue | The index of the parent of the current shape in the shape network. If the current shape is the outlet shape in the shape network, -1 will be returned. |
Sample Code
Private Sub ParentIndex()
Dim shapenetwork As New MapWinGIS.ShapeNetwork()
Dim pindex As Integer
'Get the parent index of the current shape in the shape network
pindex = shapenetwork.ParentIndex
End Sub
VB 6 Usage
Property ParentIndex() Long
Parameters
|
ReturnValue | The index of the parent of the current shape in the shape network. If the current shape is the outlet shape in the shape network, -1 will be returned. |
Sample Code
Private Sub ParentIndex()
Dim shapenetwork As New MapWinGIS.shapenetwork
Dim pindex As Long
'Get the parent index of the current shape in the shape network
pindex = shapenetwork.ParentIndex
End Sub
















