MarginTop Property  
 

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

Syntax

object.MarginTop [= value ]

Remarks

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

The margin must be a non-negative value. A value of zero removes the requested top margin, 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