Item property (PlaceCategories)

Returns a PlaceCategory object based on its Name property or position within the specified PlaceCategories collection. Read-only.

Applies to

Collections:  PlaceCategories

Syntax

object.Item(Index)

Parameters

Part Description
object Required. An expression that returns a PlaceCategories collection.
Index Required Variant. The name of the place category, or an integer representing the index number of the category within the collection. Place category names are localized in MapPoint Europe products.

Remarks

The Item property is the default property for the PlaceCategories collection.

Example

    Sub FourthPlaceCategory()

  Dim objApp As New MapPoint.Application
  'Set up application   objApp.Visible = True   objApp.UserControl = True
  'Find the fourth Place Category   MsgBox "The fourth place category is " _     + objApp.ActiveMap.PlaceCategories.Item(4).Name
  End Sub