Share via


TopMargin property

Returns or sets the size of the top margin of the printed page, in inches. Read/write Double.

Applies to

Objects:  PageSetup

Syntax

object.TopMargin

Parameters

Part Description
object Required. An expression that returns a PageSetup object.

Remarks

If necessary, MapPoint converts the TopMargin property from inches to the unit of measurement associated with the LocaleID of the user's computer. For example, if the LocaleID is English (United Kingdom), 1 inch will be converted to 25.4 millimeters.

Example

    Sub ChangePrintOutTopMargin()

  Dim objApp As New MapPoint.Application
  'Set up application   objApp.Visible = True   objApp.UserControl = True
  'Set top margin of the printout   objApp.ActiveMap.PageSetup.TopMargin = 2   objApp.ActiveMap.PrintOut PrintArea:=geoPrintMap
  End Sub