Share via


Index property

Returns the index of the specified object into the Directions, PlaceCategories, or Toolbars collection. Directions are in route order. 1-based. Read-only Long.

Applies to

Objects:  Direction, PlaceCategory, Toolbar

Syntax

object.Index

Parameters

Part Description
object Required. An expression that returns a Direction, PlaceCategory, or Toolbar object.

Example

    Sub NavigationToolbarIndex()

  'Set up application   Dim objApp As New MapPoint.Application   objApp.Visible = True   objApp.UserControl = True
  'Find the index number of the Navigation toolbar   MsgBox "The index number of the Navigation toolbar: " + _     CStr(objApp.Toolbars.Item("Navigation").Index)
  End Sub