Creates page margins (pgMar) for a document section.
This element specifies the page margins for all pages in a section, including top, bottom, left, right, header, footer, and gutter margins.
Reference: http://officeopenxml.com/WPsectionPr.php
<xsd:complexType name="CT_PageMar"> <xsd:attribute name="top" type="ST_SignedTwipsMeasure" use="required"/> <xsd:attribute name="right" type="s:ST_TwipsMeasure" use="required"/> <xsd:attribute name="bottom" type="ST_SignedTwipsMeasure" use="required"/> <xsd:attribute name="left" type="s:ST_TwipsMeasure" use="required"/> <xsd:attribute name="header" type="s:ST_TwipsMeasure" use="required"/> <xsd:attribute name="footer" type="s:ST_TwipsMeasure" use="required"/> <xsd:attribute name="gutter" type="s:ST_TwipsMeasure" use="required"/></xsd:complexType> Copy
<xsd:complexType name="CT_PageMar"> <xsd:attribute name="top" type="ST_SignedTwipsMeasure" use="required"/> <xsd:attribute name="right" type="s:ST_TwipsMeasure" use="required"/> <xsd:attribute name="bottom" type="ST_SignedTwipsMeasure" use="required"/> <xsd:attribute name="left" type="s:ST_TwipsMeasure" use="required"/> <xsd:attribute name="header" type="s:ST_TwipsMeasure" use="required"/> <xsd:attribute name="footer" type="s:ST_TwipsMeasure" use="required"/> <xsd:attribute name="gutter" type="s:ST_TwipsMeasure" use="required"/></xsd:complexType>
// Create page margins with 1 inch margins (1440 twips = 1 inch)createPageMargin(1440, 1440, 1440, 1440, 720, 720, 0); Copy
// Create page margins with 1 inch margins (1440 twips = 1 inch)createPageMargin(1440, 1440, 1440, 1440, 720, 720, 0);
Creates page margins (pgMar) for a document section.
This element specifies the page margins for all pages in a section, including top, bottom, left, right, header, footer, and gutter margins.
Reference: http://officeopenxml.com/WPsectionPr.php
XSD Schema