# OdtPageLayout

An XML-backed ODT page layout and its standard master page.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdtPageLayout.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L65)

**Modifiers**

sealed

An XML-backed ODT page layout and its standard master page.

## Inheritance

- object
- OdtPageLayout

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [OdtDocument.PageLayout](/api/open-document/officeimo-opendocument-odtdocument/#property-pagelayout)

Filter members 

Show inherited

## Methods

`public OdtHeaderFooter EnsureFirstFooter()` [#](#method-ensurefirstfooter)

[OdtPageLayout.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L67)

Creates or returns the distinct first-page footer.

Returns

`OdtHeaderFooter`

`public OdtHeaderFooter EnsureFirstHeader()` [#](#method-ensurefirstheader)

[OdtPageLayout.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L65)

Creates or returns the distinct first-page header.

Returns

`OdtHeaderFooter`

`public OdtHeaderFooter EnsureLeftFooter()` [#](#method-ensureleftfooter)

[OdtPageLayout.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L71)

Creates or returns the left-page footer.

Returns

`OdtHeaderFooter`

`public OdtHeaderFooter EnsureLeftHeader()` [#](#method-ensureleftheader)

[OdtPageLayout.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L69)

Creates or returns the left-page header.

Returns

`OdtHeaderFooter`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OdfLength Width { get; set; }` [#](#property-width)

[OdtPageLayout.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L19)

Page width.

`public OdfLength Height { get; set; }` [#](#property-height)

[OdtPageLayout.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L24)

Page height.

`public OdfLength MarginTop { get; set; }` [#](#property-margintop)

[OdtPageLayout.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L29)

Top page margin.

`public OdfLength MarginBottom { get; set; }` [#](#property-marginbottom)

[OdtPageLayout.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L34)

Bottom page margin.

`public OdfLength MarginLeft { get; set; }` [#](#property-marginleft)

[OdtPageLayout.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L39)

Left page margin.

`public OdfLength MarginRight { get; set; }` [#](#property-marginright)

[OdtPageLayout.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L44)

Right page margin.

`public OdtHeaderFooter Header { get; }` [#](#property-header)

[OdtPageLayout.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L48)

Master-page header content.

`public OdtHeaderFooter Footer { get; }` [#](#property-footer)

[OdtPageLayout.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L50)

Master-page footer content.

`public bool HasHeader { get; }` [#](#property-hasheader)

[OdtPageLayout.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L52)

Whether the master already defines a default header.

`public bool HasFooter { get; }` [#](#property-hasfooter)

[OdtPageLayout.cs:54](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L54)

Whether the master already defines a default footer.

`public OdtHeaderFooter? FirstHeader { get; }` [#](#property-firstheader)

[OdtPageLayout.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L56)

First-page header content, when the master defines a distinct first page.

`public OdtHeaderFooter? FirstFooter { get; }` [#](#property-firstfooter)

[OdtPageLayout.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L58)

First-page footer content, when the master defines a distinct first page.

`public OdtHeaderFooter? LeftHeader { get; }` [#](#property-leftheader)

[OdtPageLayout.cs:60](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L60)

Left-page header content, used for even pages in a standard left-to-right document.

`public OdtHeaderFooter? LeftFooter { get; }` [#](#property-leftfooter)

[OdtPageLayout.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtPageLayout.cs#L62)

Left-page footer content, used for even pages in a standard left-to-right document.

<!-- PowerForge markdown artifact sha256:F5DF4F96482C9B5E72EFEE83699F27CAA5E55D2C2AD594082D9FA41B4B32B0E0 -->
