Share via


PageSetup property

Returns the PageSetup object for the map, which contains print options for the specified map file. Read-only.

Applies to

Objects: Map

Syntax

object.PageSetup

Parameters

Part

Description

object

Required. An expression that returns a Map object.

Example

  Sub UsePageSetupProperty()

  Dim objApp As New MapPoint.Application

  'Set up the application
  objApp.Visible = True
  objApp.UserControl = True

  'Use the PageSetup property to set the top margin of the printout
  objApp.ActiveMap.PageSetup.TopMargin = 3
  objApp.ActiveMap.PrintOut

  End Sub