# LegacyWordHeaderFooterOccurrence

Identifies pages to which a recovered header or footer applies.

Enum 

`OfficeIMO.Word.Legacy`

**Namespace**

`OfficeIMO.Word.Legacy`

**Assembly**

`OfficeIMO.Word`

**Source revision**

`51cd59ece1fa` with working tree changes

**Source**

[LegacyWordStructureContracts.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/51cd59ece1fa22f062b7419cfd3afa43c266a7cf/OfficeIMO.Word/Legacy/LegacyWordStructureContracts.cs#L51)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Identifies pages to which a recovered header or footer applies.

## Inheritance

- Enum
- LegacyWordHeaderFooterOccurrence

## Usage

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

- Property [LegacyWordHeaderFooterContent.Occurrence](/api/word/officeimo-word-legacy-legacywordheaderfootercontent/#property-occurrence)
- Field [LegacyWordHeaderFooterOccurrence.All](/api/word/officeimo-word-legacy-legacywordheaderfooteroccurrence/#field-all)
- Field [LegacyWordHeaderFooterOccurrence.Even](/api/word/officeimo-word-legacy-legacywordheaderfooteroccurrence/#field-even)
- Field [LegacyWordHeaderFooterOccurrence.Odd](/api/word/officeimo-word-legacy-legacywordheaderfooteroccurrence/#field-odd)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const LegacyWordHeaderFooterOccurrence All` [#](#field-all)

[LegacyWordStructureContracts.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/51cd59ece1fa22f062b7419cfd3afa43c266a7cf/OfficeIMO.Word/Legacy/LegacyWordStructureContracts.cs#L53)

All pages.

Value: `0`

`public const LegacyWordHeaderFooterOccurrence Odd` [#](#field-odd)

[LegacyWordStructureContracts.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/51cd59ece1fa22f062b7419cfd3afa43c266a7cf/OfficeIMO.Word/Legacy/LegacyWordStructureContracts.cs#L55)

Odd pages.

Value: `1`

`public const LegacyWordHeaderFooterOccurrence Even` [#](#field-even)

[LegacyWordStructureContracts.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/51cd59ece1fa22f062b7419cfd3afa43c266a7cf/OfficeIMO.Word/Legacy/LegacyWordStructureContracts.cs#L57)

Even pages.

Value: `2`

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