# OfficeFormatGeneration

Identifies the generation of an Office file format.

Enum 

`OfficeIMO`

**Namespace**

`OfficeIMO`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeCompatibilityEnums.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Compatibility/OfficeCompatibilityEnums.cs#L28)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Identifies the generation of an Office file format.

## Inheritance

- Enum
- OfficeFormatGeneration

## 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 3

- Property [OfficeFormatDescriptor.Generation](/api/core/officeimo-officeformatdescriptor/#property-generation)
- Field [OfficeFormatGeneration.Legacy](/api/core/officeimo-officeformatgeneration/#field-legacy)
- Field [OfficeFormatGeneration.Modern](/api/core/officeimo-officeformatgeneration/#field-modern)

### Accepted by parameters 1

- Constructor [OfficeFormatDescriptor.OfficeFormatDescriptor](/api/core/officeimo-officeformatdescriptor/#constructor-ctor-string-string-officeimo-officedocumentfamily-officeimo-officedocumentkind-officeimo-officeformatgeneration-officeimo-officeformatencoding-boolean) parameter `generation`

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 OfficeFormatGeneration Legacy` [#](#field-legacy)

[OfficeCompatibilityEnums.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Compatibility/OfficeCompatibilityEnums.cs#L30)

A legacy Office 97-2003 binary format.

Value: `0`

`public const OfficeFormatGeneration Modern` [#](#field-modern)

[OfficeCompatibilityEnums.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Compatibility/OfficeCompatibilityEnums.cs#L32)

A modern Office format.

Value: `1`

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