MarginRight Property  
 

Gets and sets the right margin of the printed page, in inches.

Syntax

object.MarginRight [= value ]

Remarks

The MarginRight property specifies the right margin of the printed page, expressed in inches. This value determine the distance between the right edge of the page and the document's printable content area. If the property has not been explicitly set, the default margin of 1 cm (0.394 inches) is used.

Margins must be non-negative values. A value of zero removes the requested margin on the right side of the page, although the actual printable area may still be restricted by the capabilities of the selected printer.

All measurements are expressed in inches. To convert a measurement from centimeters to inches, divide the value in centimeters by 2.54. For example, a margin of 2.54 centimeters is equivalent to 1 inch.

The value of this property affects both printed documents and documents saved in PDF format.

Data Type

Double

See Also