# OdtHeaderFooter

XML-backed header or footer content on an ODT master page.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Modifiers**

sealed

XML-backed header or footer content on an ODT master page.

## Inheritance

- object
- OdtHeaderFooter

## Usage

Explore 11 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 11

- Property [OdtDocument.HeaderFooters](/api/open-document/officeimo-opendocument-odtdocument/#property-headerfooters)
- Method [OdtPageLayout.EnsureFirstFooter](/api/open-document/officeimo-opendocument-odtpagelayout/#method-ensurefirstfooter)
- Method [OdtPageLayout.EnsureFirstHeader](/api/open-document/officeimo-opendocument-odtpagelayout/#method-ensurefirstheader)
- Method [OdtPageLayout.EnsureLeftFooter](/api/open-document/officeimo-opendocument-odtpagelayout/#method-ensureleftfooter)
- Method [OdtPageLayout.EnsureLeftHeader](/api/open-document/officeimo-opendocument-odtpagelayout/#method-ensureleftheader)
- Property [OdtPageLayout.FirstFooter](/api/open-document/officeimo-opendocument-odtpagelayout/#property-firstfooter)
- Property [OdtPageLayout.FirstHeader](/api/open-document/officeimo-opendocument-odtpagelayout/#property-firstheader)
- Property [OdtPageLayout.Footer](/api/open-document/officeimo-opendocument-odtpagelayout/#property-footer)
- Property [OdtPageLayout.Header](/api/open-document/officeimo-opendocument-odtpagelayout/#property-header)
- Property [OdtPageLayout.LeftFooter](/api/open-document/officeimo-opendocument-odtpagelayout/#property-leftfooter)
- Property [OdtPageLayout.LeftHeader](/api/open-document/officeimo-opendocument-odtpagelayout/#property-leftheader)

Filter members 

Show inherited

## Methods

`public OdtParagraph AddHeading(string text, int level = 1)` [#](#method-addheading-string-int32)

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

Adds a heading with an outline level from 1 through 10.

Parameters

**text string required**

**level int = 1 optional**

Returns

`OdtParagraph`

`public OdtParagraph AddParagraph(string? text = null)` [#](#method-addparagraph-string)

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

Adds a paragraph.

Parameters

**text string? = null optional**

Returns

`OdtParagraph`

## 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 string Kind { get; }` [#](#property-kind)

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

Native story kind, including distinct first and left variants.

`public string? MasterPageName { get; }` [#](#property-masterpagename)

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

Owning authored master page name when present.

`public IReadOnlyList<OdtContentBlock> ContentBlocks { get; }` [#](#property-contentblocks)

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

Supported ordered paragraph and table blocks in the existing story.

`public bool IsDisplayed { get; set; }` [#](#property-isdisplayed)

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

Whether this header or footer is displayed by the master page.

`public IReadOnlyList<OdtParagraph> Paragraphs { get; }` [#](#property-paragraphs)

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

Paragraphs in this header or footer.

`public int NonParagraphBlockCount { get; }` [#](#property-nonparagraphblockcount)

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

Direct content blocks outside the paragraph and heading surface.

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