Title property

Returns or sets the title that appears on the specified Web page. Read/write String.

Applies to

Objects: SavedWebPage

Syntax

object.Title

Properties

Part

Description

Object

Required. An expression that returns a SavedWebPage object.

Remarks

  • To avoid a title on the Web page, the Title property can be set to an empty string.

Example

  Sub ChangeWebPageTitle()

  Dim objApp As New MapPoint.Application
  Dim objMap As MapPoint.Map
  Dim objRoute As MapPoint.Route
  Dim objSW As MapPoint.SavedWebPage

  'Set up the application
  Set objMap = objApp.ActiveMap
  Set objRoute = objMap.ActiveRoute
  objApp.Visible = True
  objApp.UserControl = True

  'Create a route
  objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)
  objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1)
  objRoute.Calculate

  'Create a saved Web page, zoomed in on first waypoint
  Set objSW = objMap.SavedWebPages.Add("SavedWeb", _
    objRoute.Waypoints.Item(1).Location, "New Title", _
    True, False, True, 200, 400, False, True, False, True)
  objSW.Save

  'Change the title of the Web page
  objSW.Title = "Changed Title"
  objSW.Save

  End Sub
 

Note   This sample code is specific for use in MapPoint North America; it is for illustration purposes only.