# LatexTokenKind

Lossless TeX-aware token kind. Review signatures, members, parameters, type relationships, and available reference details in OfficeIMO.Latex API Reference.

Enum 

`OfficeIMO.Latex`

**Namespace**

`OfficeIMO.Latex`

**Assembly**

`OfficeIMO.Latex`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[LatexToken.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L4)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Lossless TeX-aware token kind.

## Inheritance

- Enum
- LatexTokenKind

## Usage

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

- Property [LatexToken.Kind](/api/latex/officeimo-latex-latextoken/#property-kind)
- Field [LatexTokenKind.AlignmentTab](/api/latex/officeimo-latex-latextokenkind/#field-alignmenttab)
- Field [LatexTokenKind.CloseBrace](/api/latex/officeimo-latex-latextokenkind/#field-closebrace)
- Field [LatexTokenKind.CloseBracket](/api/latex/officeimo-latex-latextokenkind/#field-closebracket)
- Field [LatexTokenKind.Command](/api/latex/officeimo-latex-latextokenkind/#field-command)
- Field [LatexTokenKind.Comment](/api/latex/officeimo-latex-latextokenkind/#field-comment)
- Field [LatexTokenKind.LineEnding](/api/latex/officeimo-latex-latextokenkind/#field-lineending)
- Field [LatexTokenKind.MathShift](/api/latex/officeimo-latex-latextokenkind/#field-mathshift)
- Field [LatexTokenKind.NonBreakingSpace](/api/latex/officeimo-latex-latextokenkind/#field-nonbreakingspace)
- Field [LatexTokenKind.OpenBrace](/api/latex/officeimo-latex-latextokenkind/#field-openbrace)
- Field [LatexTokenKind.OpenBracket](/api/latex/officeimo-latex-latextokenkind/#field-openbracket)
- Field [LatexTokenKind.Parameter](/api/latex/officeimo-latex-latextokenkind/#field-parameter)
- Field [LatexTokenKind.Subscript](/api/latex/officeimo-latex-latextokenkind/#field-subscript)
- Field [LatexTokenKind.Superscript](/api/latex/officeimo-latex-latextokenkind/#field-superscript)
- Field [LatexTokenKind.Text](/api/latex/officeimo-latex-latextokenkind/#field-text)
- Field [LatexTokenKind.Verbatim](/api/latex/officeimo-latex-latextokenkind/#field-verbatim)
- Field [LatexTokenKind.Whitespace](/api/latex/officeimo-latex-latextokenkind/#field-whitespace)

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

[LatexToken.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L6)

Ordinary source text.

Value: `0`

`public const LatexTokenKind Command` [#](#field-command)

[LatexToken.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L8)

Control word or control symbol beginning with backslash.

Value: `1`

`public const LatexTokenKind OpenBrace` [#](#field-openbrace)

[LatexToken.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L10)

Opening required-group brace.

Value: `2`

`public const LatexTokenKind CloseBrace` [#](#field-closebrace)

[LatexToken.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L12)

Closing required-group brace.

Value: `3`

`public const LatexTokenKind OpenBracket` [#](#field-openbracket)

[LatexToken.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L14)

Opening optional-argument bracket.

Value: `4`

`public const LatexTokenKind CloseBracket` [#](#field-closebracket)

[LatexToken.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L16)

Closing optional-argument bracket.

Value: `5`

`public const LatexTokenKind MathShift` [#](#field-mathshift)

[LatexToken.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L18)

Single or double dollar math shift.

Value: `6`

`public const LatexTokenKind Comment` [#](#field-comment)

[LatexToken.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L20)

Comment from percent marker through end of line content.

Value: `7`

`public const LatexTokenKind Whitespace` [#](#field-whitespace)

[LatexToken.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L22)

Spaces and tabs.

Value: `8`

`public const LatexTokenKind LineEnding` [#](#field-lineending)

[LatexToken.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L24)

LF, CRLF, or CR token.

Value: `9`

`public const LatexTokenKind AlignmentTab` [#](#field-alignmenttab)

[LatexToken.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L26)

Alignment tab.

Value: `10`

`public const LatexTokenKind Superscript` [#](#field-superscript)

[LatexToken.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L28)

Superscript marker.

Value: `11`

`public const LatexTokenKind Subscript` [#](#field-subscript)

[LatexToken.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L30)

Subscript marker.

Value: `12`

`public const LatexTokenKind Parameter` [#](#field-parameter)

[LatexToken.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L32)

Parameter marker.

Value: `13`

`public const LatexTokenKind NonBreakingSpace` [#](#field-nonbreakingspace)

[LatexToken.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L34)

Non-breaking-space marker.

Value: `14`

`public const LatexTokenKind Verbatim` [#](#field-verbatim)

[LatexToken.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Tokens/LatexToken.cs#L36)

Opaque inline verbatim command or verbatim-like environment.

Value: `15`

<!-- PowerForge markdown artifact sha256:403D789E0B2380F21F9AD924302D467FE35BC78C6F01556C1E74A4277F8DE47A -->
