# RtfGeneratedTextKind

Built-in generated text controls represented directly by RTF control words.

Enum 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[RtfGeneratedTextKind.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfGeneratedTextKind.cs#L6)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Built-in generated text controls represented directly by RTF control words.

## Inheritance

- Enum
- RtfGeneratedTextKind

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

- Property [RtfGeneratedText.Kind](/api/rtf/officeimo-rtf-rtfgeneratedtext/#property-kind)
- Field [RtfGeneratedTextKind.CurrentDate](/api/rtf/officeimo-rtf-rtfgeneratedtextkind/#field-currentdate)
- Field [RtfGeneratedTextKind.CurrentDateAbbreviated](/api/rtf/officeimo-rtf-rtfgeneratedtextkind/#field-currentdateabbreviated)
- Field [RtfGeneratedTextKind.CurrentDateLong](/api/rtf/officeimo-rtf-rtfgeneratedtextkind/#field-currentdatelong)
- Field [RtfGeneratedTextKind.CurrentTime](/api/rtf/officeimo-rtf-rtfgeneratedtextkind/#field-currenttime)
- Field [RtfGeneratedTextKind.NoteReference](/api/rtf/officeimo-rtf-rtfgeneratedtextkind/#field-notereference)
- Field [RtfGeneratedTextKind.PageNumber](/api/rtf/officeimo-rtf-rtfgeneratedtextkind/#field-pagenumber)
- Field [RtfGeneratedTextKind.SectionNumber](/api/rtf/officeimo-rtf-rtfgeneratedtextkind/#field-sectionnumber)

### Accepted by parameters 2

- Constructor [RtfGeneratedText.RtfGeneratedText](/api/rtf/officeimo-rtf-rtfgeneratedtext/#constructor-ctor-officeimo-rtf-rtfgeneratedtextkind-string) parameter `kind`
- Method [RtfParagraph.AddGeneratedText](/api/rtf/officeimo-rtf-rtfparagraph/#method-addgeneratedtext-officeimo-rtf-rtfgeneratedtextkind-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 RtfGeneratedTextKind PageNumber` [#](#field-pagenumber)

[RtfGeneratedTextKind.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfGeneratedTextKind.cs#L8)

Current page number, emitted as \chpgn.

Value: `0`

`public const RtfGeneratedTextKind SectionNumber` [#](#field-sectionnumber)

[RtfGeneratedTextKind.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfGeneratedTextKind.cs#L11)

Current section number, emitted as \sectnum.

Value: `1`

`public const RtfGeneratedTextKind CurrentDate` [#](#field-currentdate)

[RtfGeneratedTextKind.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfGeneratedTextKind.cs#L14)

Current date, emitted as \chdate.

Value: `2`

`public const RtfGeneratedTextKind CurrentDateLong` [#](#field-currentdatelong)

[RtfGeneratedTextKind.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfGeneratedTextKind.cs#L17)

Current date in long format, emitted as \chdpl.

Value: `3`

`public const RtfGeneratedTextKind CurrentDateAbbreviated` [#](#field-currentdateabbreviated)

[RtfGeneratedTextKind.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfGeneratedTextKind.cs#L20)

Current date in abbreviated format, emitted as \chdpa.

Value: `4`

`public const RtfGeneratedTextKind CurrentTime` [#](#field-currenttime)

[RtfGeneratedTextKind.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfGeneratedTextKind.cs#L23)

Current time, emitted as \chtime.

Value: `5`

`public const RtfGeneratedTextKind NoteReference` [#](#field-notereference)

[RtfGeneratedTextKind.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Rtf/Model/RtfGeneratedTextKind.cs#L26)

Automatic note reference marker, emitted as \chftn.

Value: `6`

<!-- PowerForge markdown artifact sha256:39727D721707AF0C91353F4B34E0D5B289A7627E624BAC31C5952EC19C968A70 -->
