# RtfHeaderFooter

Header or footer content for an RTF document.

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfHeaderFooter.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfHeaderFooter.cs#L21)

**Implements**

`IRtfCloneable`

**Modifiers**

sealed

Header or footer content for an RTF document.

## Inheritance

- object
- RtfHeaderFooter

## Usage

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

- Method [RtfDocument.AddFooter](/api/rtf/officeimo-rtf-rtfdocument/#method-addfooter-officeimo-rtf-rtfheaderfooterkind)
- Method [RtfDocument.AddHeader](/api/rtf/officeimo-rtf-rtfdocument/#method-addheader-officeimo-rtf-rtfheaderfooterkind)
- Method [RtfDocument.AddHeaderFooter](/api/rtf/officeimo-rtf-rtfdocument/#method-addheaderfooter-officeimo-rtf-rtfheaderfooterkind)
- Method [RtfDocument.GetEffectiveHeaderFooters](/api/rtf/officeimo-rtf-rtfdocument/#method-geteffectiveheaderfooters-officeimo-rtf-rtfsection)
- Property [RtfDocument.HeaderFooters](/api/rtf/officeimo-rtf-rtfdocument/#property-headerfooters)
- Method [RtfSection.AddFooter](/api/rtf/officeimo-rtf-rtfsection/#method-addfooter-officeimo-rtf-rtfheaderfooterkind)
- Method [RtfSection.AddHeader](/api/rtf/officeimo-rtf-rtfsection/#method-addheader-officeimo-rtf-rtfheaderfooterkind)
- Method [RtfSection.AddHeaderFooter](/api/rtf/officeimo-rtf-rtfsection/#method-addheaderfooter-officeimo-rtf-rtfheaderfooterkind)
- Property [RtfSection.HeaderFooters](/api/rtf/officeimo-rtf-rtfsection/#property-headerfooters)

Filter members 

Show inherited

## Methods

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

[RtfHeaderFooter.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfHeaderFooter.cs#L21)

Adds a paragraph to this header or footer.

Parameters

**text string? = null optional**

Returns

`RtfParagraph`

`public string ToPlainText()` [#](#method-toplaintext)

[RtfHeaderFooter.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfHeaderFooter.cs#L32)

Returns the header or footer text with paragraphs separated by new lines.

Returns

`string`

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

[RtfHeaderFooter.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfHeaderFooter.cs#L14)

Header or footer destination kind.

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

[RtfHeaderFooter.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfHeaderFooter.cs#L17)

Paragraphs contained by this header or footer.

<!-- PowerForge markdown artifact sha256:860B13F579C4500C5228587C4B4A966714C6172A66C91B7294996FF02D1E1069 -->
