# LatexSyntaxNode

Immutable node in the lossless LaTeX syntax tree.

Class 

`OfficeIMO.Latex`

**Namespace**

`OfficeIMO.Latex`

**Assembly**

`OfficeIMO.Latex`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[LatexSyntaxNode.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Syntax/LatexSyntaxNode.cs#L62)

**Modifiers**

sealed

Immutable node in the lossless LaTeX syntax tree.

## Inheritance

- object
- LatexSyntaxNode

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

- Property [LatexArgument.Syntax](/api/latex/officeimo-latex-latexargument/#property-syntax)
- Property [LatexCommand.Syntax](/api/latex/officeimo-latex-latexcommand/#property-syntax)
- Property [LatexEnvironment.Syntax](/api/latex/officeimo-latex-latexenvironment/#property-syntax)
- Property [LatexMath.Syntax](/api/latex/officeimo-latex-latexmath/#property-syntax)
- Method [LatexSyntaxNode.DescendantsAndSelf](/api/latex/officeimo-latex-latexsyntaxnode/#method-descendantsandself)
- Property [LatexSyntaxNode.Children](/api/latex/officeimo-latex-latexsyntaxnode/#property-children)
- Property [LatexSyntaxNode.Parent](/api/latex/officeimo-latex-latexsyntaxnode/#property-parent)
- Property [LatexSyntaxTree.Root](/api/latex/officeimo-latex-latexsyntaxtree/#property-root)

Filter members 

Show inherited

## Methods

`public IEnumerable<LatexSyntaxNode> DescendantsAndSelf()` [#](#method-descendantsandself)

Enumerates this node and descendants.

Returns

`IEnumerable<LatexSyntaxNode>`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public LatexSyntaxKind Kind { get; }` [#](#property-kind)

[LatexSyntaxNode.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Syntax/LatexSyntaxNode.cs#L62)

Syntax kind.

`public LatexSourceSpan Span { get; }` [#](#property-span)

[LatexSyntaxNode.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Syntax/LatexSyntaxNode.cs#L64)

Exact source span.

`public string OriginalText { get; }` [#](#property-originaltext)

[LatexSyntaxNode.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Syntax/LatexSyntaxNode.cs#L68)

Exact source slice.

`public string? Value { get; }` [#](#property-value)

[LatexSyntaxNode.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Syntax/LatexSyntaxNode.cs#L77)

Command or environment name when applicable.

`public LatexSyntaxNode? Parent { get; private set; }` [#](#property-parent)

[LatexSyntaxNode.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Syntax/LatexSyntaxNode.cs#L79)

Parent node.

`public int IndexInParent { get; }` [#](#property-indexinparent)

[LatexSyntaxNode.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Syntax/LatexSyntaxNode.cs#L81)

Index in parent or -1.

`public IReadOnlyList<LatexSyntaxNode> Children { get; }` [#](#property-children)

[LatexSyntaxNode.cs:83](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Latex/Syntax/LatexSyntaxNode.cs#L83)

Child nodes in source order.

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