pgMar element [Word 2003 XML Reference] --  Microsoft Office Word 2003 XML Software Development Kit

pgMar element [Word 2003 XML Reference]

Specifies the page margins.

Usage

<pgMar
    top="signedTwipsMeasureType"
    right="twipsMeasureType"
    bottom="signedTwipsMeasureType"
    left="twipsMeasureType"
    header="twipsMeasureType"
    footer="twipsMeasureType"
    gutter="twipsMeasureType"
/>

Element Information

Element type pageMarType
Namespace http://schemas.microsoft.com/office/word/2003/wordml
Schema name XML Document 2003

Elements and Attributes

Parent Elements

Element Description
sectPr Represents section properties for section that terminates at this paragraph mark.
sectPr Represents the section properties for the very last section in the document.

Child Elements

None.

Attributes

Attribute Type Required Description Possible Values
top signedTwipsMeasureType required Gets or sets the distance between the top edge of the page and the top of the first line on the page.
right twipsMeasureType required Gets or sets the distance between the right edge of the page and the right end of a line with no right indent.
bottom signedTwipsMeasureType required Gets or sets distance between the bottom edge of the page and the bottom of the last line on the page.
left twipsMeasureType required Gets or sets the distance between the left edge of the page and the left edge of unindented lines.
header twipsMeasureType required Gets or sets the distance from the top edge of the paper to the top edge of the header.
footer twipsMeasureType required Gets or sets the distance from the bottom edge of the paper to the bottom edge of the footer.
gutter twipsMeasureType required Gets or sets the amount of extra space added to the margin for document binding.

Definition

<xsd:element name="pgMar" type="pageMarType" minOccurs="0" >
</xsd:element>

©2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp