# OfficeOpenXmlFileFormatVersion

Microsoft Office generation used for Open XML validation and markup compatibility.

Enum 

`OfficeIMO`

**Namespace**

`OfficeIMO`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Microsoft Office generation used for Open XML validation and markup compatibility.

## Inheritance

- Enum
- OfficeOpenXmlFileFormatVersion

## Usage

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

- Field [OfficeOpenXmlFileFormatVersion.Microsoft365](/api/core/officeimo-officeopenxmlfileformatversion/#field-microsoft365)
- Field [OfficeOpenXmlFileFormatVersion.Office2007](/api/core/officeimo-officeopenxmlfileformatversion/#field-office2007)
- Field [OfficeOpenXmlFileFormatVersion.Office2010](/api/core/officeimo-officeopenxmlfileformatversion/#field-office2010)
- Field [OfficeOpenXmlFileFormatVersion.Office2013](/api/core/officeimo-officeopenxmlfileformatversion/#field-office2013)
- Field [OfficeOpenXmlFileFormatVersion.Office2016](/api/core/officeimo-officeopenxmlfileformatversion/#field-office2016)
- Field [OfficeOpenXmlFileFormatVersion.Office2019](/api/core/officeimo-officeopenxmlfileformatversion/#field-office2019)
- Field [OfficeOpenXmlFileFormatVersion.Office2021](/api/core/officeimo-officeopenxmlfileformatversion/#field-office2021)
- Property [OfficeOpenXmlLoadSettings.MarkupCompatibilityTargetVersion](/api/core/officeimo-officeopenxmlloadsettings/#property-markupcompatibilitytargetversion)

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 OfficeOpenXmlFileFormatVersion Office2007` [#](#field-office2007)

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

Office 2007.

Value: `0`

`public const OfficeOpenXmlFileFormatVersion Office2010` [#](#field-office2010)

[OfficeOpenXmlContracts.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficeOpenXmlContracts.cs#L33)

Office 2010.

Value: `1`

`public const OfficeOpenXmlFileFormatVersion Office2013` [#](#field-office2013)

[OfficeOpenXmlContracts.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficeOpenXmlContracts.cs#L36)

Office 2013.

Value: `2`

`public const OfficeOpenXmlFileFormatVersion Office2016` [#](#field-office2016)

[OfficeOpenXmlContracts.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficeOpenXmlContracts.cs#L39)

Office 2016.

Value: `3`

`public const OfficeOpenXmlFileFormatVersion Office2019` [#](#field-office2019)

[OfficeOpenXmlContracts.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficeOpenXmlContracts.cs#L42)

Office 2019.

Value: `4`

`public const OfficeOpenXmlFileFormatVersion Office2021` [#](#field-office2021)

[OfficeOpenXmlContracts.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficeOpenXmlContracts.cs#L45)

Office 2021.

Value: `5`

`public const OfficeOpenXmlFileFormatVersion Microsoft365` [#](#field-microsoft365)

[OfficeOpenXmlContracts.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Core/Documents/OfficeOpenXmlContracts.cs#L48)

Microsoft 365.

Value: `6`

<!-- PowerForge markdown artifact sha256:40A9FA8DBDEA239ADA2DB2F46B3C2C5A18A43B7FC4B898E07B6A0D483317DABF -->
