InsertWaypoint

Inserts a waypoint at a specified point in the route.

 

JavaScript

 

InsertWaypoint(

       IndexInsertAfter,

       pWaypoint)

 

C#

 

void InsertWaypoint(

       int IndexInsertAfter,

       IRouteWaypoint66 pWaypoint)

 

C++

 

HRESULT InsertWaypoint(

       long IndexInsertAfter,

       IRouteWaypoint66* pWaypoint)

Parameters

IndexInsertAfter

The zero-based index of the waypoint after which the new waypoint should be inserted.

Note:    In order to insert a new waypoint before the first waypoint, set IndexInsertAfter to -1.

pWaypoint

An IRouteWaypoint66 representing the inserted waypoint.

Exceptions

See:  HRESULT Return Values for a list of possible values returned by the HRESULT.