# OdfDocumentKind

Identifies the OpenDocument body and package media type.

Enum 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdfDocumentKind.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocumentKind.cs#L4)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Identifies the OpenDocument body and package media type.

## Inheritance

- Enum
- OdfDocumentKind

## Usage

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

- Property [OdfDocument.Kind](/api/open-document/officeimo-opendocument-odfdocument/#property-kind)
- Field [OdfDocumentKind.Graphics](/api/open-document/officeimo-opendocument-odfdocumentkind/#field-graphics)
- Field [OdfDocumentKind.Presentation](/api/open-document/officeimo-opendocument-odfdocumentkind/#field-presentation)
- Field [OdfDocumentKind.Spreadsheet](/api/open-document/officeimo-opendocument-odfdocumentkind/#field-spreadsheet)
- Field [OdfDocumentKind.Text](/api/open-document/officeimo-opendocument-odfdocumentkind/#field-text)
- Property [OdgDocument.Kind](/api/open-document/officeimo-opendocument-odgdocument/#property-kind)
- Property [OdpPresentation.Kind](/api/open-document/officeimo-opendocument-odppresentation/#property-kind)
- Property [OdsDocument.Kind](/api/open-document/officeimo-opendocument-odsdocument/#property-kind)
- Property [OdtDocument.Kind](/api/open-document/officeimo-opendocument-odtdocument/#property-kind)

### Accepted by parameters 1

- Method [OdfDocument.Create](/api/open-document/officeimo-opendocument-odfdocument/#method-create-officeimo-opendocument-odfdocumentkind-string) parameter `kind`

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 OdfDocumentKind Text` [#](#field-text)

[OdfDocumentKind.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocumentKind.cs#L6)

OpenDocument Text (`.odt`).

Value: `0`

`public const OdfDocumentKind Spreadsheet` [#](#field-spreadsheet)

[OdfDocumentKind.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocumentKind.cs#L8)

OpenDocument Spreadsheet (`.ods`).

Value: `1`

`public const OdfDocumentKind Presentation` [#](#field-presentation)

[OdfDocumentKind.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocumentKind.cs#L10)

OpenDocument Presentation (`.odp`).

Value: `2`

`public const OdfDocumentKind Graphics` [#](#field-graphics)

[OdfDocumentKind.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Core/OdfDocumentKind.cs#L12)

OpenDocument Graphics (`.odg`).

Value: `3`

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