Specifies the size and orientation of this page.

Usage


<pgSz
	w="twipsMeasureType"
	h="twipsMeasureType"
	orient="pageOrientationValue"
	code="decimalNumberType"
/>

Element Information

Element type pageSzType
Namespace http://schemas.microsoft.com/office/word/2003/wordml
Schema name wordnet

Elements and Attributes

Parent Elements

Element Description
sectPr Represents section properties for section that terminates at this paragraph mark.

Child Elements

None.

Attributes

Attribute Type Required Description Possible Values
w twipsMeasureType required Gets or sets width of the page.
h twipsMeasureType required Gets or sets height of the page.
orient pageOrientationValue optional Gets or sets page orientation.
  • portrait
  • landscape
code decimalNumberType optional Gets or sets internal paper code to ensure the proper type is chosen if size matches size of multiple paper types supported by your printer.

Definition

XML

<xsd:element name="pgSz" type="pageSzType" minOccurs="0" ">
        
      </xsd:element>

©2006 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/odcXMLRefLegalNotice12.asp