# OdfTextFieldKind

Basic native ODF fields with cached display text.

Enum 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OdfTextField.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextField.cs#L4)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Basic native ODF fields with cached display text.

## Inheritance

- Enum
- OdfTextFieldKind

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

- Property [OdfTextField.Kind](/api/open-document/officeimo-opendocument-odftextfield/#property-kind)
- Field [OdfTextFieldKind.Date](/api/open-document/officeimo-opendocument-odftextfieldkind/#field-date)
- Field [OdfTextFieldKind.PageCount](/api/open-document/officeimo-opendocument-odftextfieldkind/#field-pagecount)
- Field [OdfTextFieldKind.PageNumber](/api/open-document/officeimo-opendocument-odftextfieldkind/#field-pagenumber)
- Field [OdfTextFieldKind.Time](/api/open-document/officeimo-opendocument-odftextfieldkind/#field-time)

### Accepted by parameters 4

- Method [OdfTextContent.AddField](/api/open-document/officeimo-opendocument-odftextcontent/#method-addfield-officeimo-opendocument-odftextfieldkind-string) parameter `kind`
- Method [OdfTextHyperlink.AddField](/api/open-document/officeimo-opendocument-odftexthyperlink/#method-addfield-odftextfieldkind-string) parameter `kind`
- Method [OdfTextParagraph.AddField](/api/open-document/officeimo-opendocument-odftextparagraph/#method-addfield-odftextfieldkind-string) parameter `kind`
- Method [OdfTextRun.AddField](/api/open-document/officeimo-opendocument-odftextrun/#method-addfield-odftextfieldkind-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 OdfTextFieldKind PageNumber` [#](#field-pagenumber)

[OdfTextField.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextField.cs#L6)

Current page number.

Value: `0`

`public const OdfTextFieldKind PageCount` [#](#field-pagecount)

[OdfTextField.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextField.cs#L8)

Total page count.

Value: `1`

`public const OdfTextFieldKind Date` [#](#field-date)

[OdfTextField.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextField.cs#L10)

Date.

Value: `2`

`public const OdfTextFieldKind Time` [#](#field-time)

[OdfTextField.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextField.cs#L12)

Time.

Value: `3`

<!-- PowerForge markdown artifact sha256:26584A1A7830BCB27B7C47C61F9BD6989F5C772B7E6AB3CEAD76D9A8A60AE4CE -->
