RightMargin property
Returns or sets the size of the right margin of the printed page, in inches. Read/write Double.
Applies to
Objects: PageSetup
Syntax
object.RightMargin
Parameters
Part |
Description |
---|---|
object |
Required. An expression that returns a PageSetup object. |
Remarks
- If necessary, MapPoint converts the RightMargin 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 ChangePrintOutRightMargin()
Dim objApp As New MapPoint.Application
'Set up application
objApp.Visible = True
objApp.UserControl = True
'Set right margin of printout
objApp.ActiveMap.PageSetup.RightMargin = 2
objApp.ActiveMap.PrintOut PrintArea:=geoPrintMap
End Sub