MapWinGIS:ShapeNetwork ParentIndex

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

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

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:ShapeNetwork_ParentIndex"

This page has been accessed 1,037 times. This page was last modified on 9 November 2005, at 17:05.