InsertWaypoint

Inserts a waypoint at a specified point in the route.

 

JavaScript

 

InsertWaypoint(

       IndexInsertAfter,

       pWaypoint)

 

C#

 

void InsertWaypoint(

       int IndexInsertAfter,

       IRouteWaypoint65 pWaypoint)

 

C++

 

HRESULT InsertWaypoint(

       long IndexInsertAfter,

       IRouteWaypoint65* pWaypoint)

Parameters

IndexInsertAfter

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

pWaypoint

An IRouteWaypoint65 representing the inserted waypoint.

Exceptions

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