LeftMargin property

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

Applies to

Objects:  PageSetup

Syntax

object.LeftMargin

Parameters

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

Remarks

If necessary, MapPoint converts the LeftMargin 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 ChangePrintOutLeftMargin()

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