PageMargins Class
Page Margins.When the object is serialized out as xml, its qualified name is x:pageMargins.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Spreadsheet.PageMargins
Namespace: DocumentFormat.OpenXml.Spreadsheet
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaración
Public Class PageMargins _
Inherits OpenXmlLeafElement
'Uso
Dim instance As PageMargins
public class PageMargins : OpenXmlLeafElement
Remarks
[ISO/IEC 29500-1 1ª edición]
18.3.1.62 pageMargins (Page Margins)
Page margins for a sheet or a custom sheet view.
[Example:
<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3"
footer="0.3"/>
end example]
Parent Elements |
---|
chartsheet (§18.3.1.12); customSheetView (§18.3.1.24); customSheetView (§18.3.1.25); dialogsheet (§18.3.1.34); worksheet (§18.3.1.99) |
Attributes |
Description |
---|---|
bottom (Bottom Page Margin) |
Bottom Page Margin in inches. The possible values for this attribute are defined by the W3C XML Schema double datatype. |
footer (Footer Page Margin) |
Footer Page Margin in inches. The possible values for this attribute are defined by the W3C XML Schema double datatype. |
header (Header Page Margin) |
Header Page Margin in inches. The possible values for this attribute are defined by the W3C XML Schema double datatype. |
left (Left Page Margin) |
Left Page Margin in inches. The possible values for this attribute are defined by the W3C XML Schema double datatype. |
right (Right Page Margin) |
Right page margin in inches. The possible values for this attribute are defined by the W3C XML Schema double datatype. |
top (Top Page Margin) |
Top Page Margin in inches. The possible values for this attribute are defined by the W3C XML Schema double datatype. |
[Note: The W3C XML Schema definition of this element's content model (CT_PageMargins) is located in §A.2. end note]
© ISO/IEC29500: 2008. Los extractos anteriores han sido traducidos del inglés al español por Microsoft (o algunos de sus agentes) e ISO no asume ningún tipo de responsabilidad por dichas traducciones.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.