# RtfSyntaxWriter

Writes an RTF syntax tree back to RTF while preserving raw tokens captured by the parser.

Class 

`OfficeIMO.Rtf.Syntax`

**Namespace**

`OfficeIMO.Rtf.Syntax`

**Assembly**

`OfficeIMO.Rtf`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

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

**Modifiers**

static

Writes an RTF syntax tree back to RTF while preserving raw tokens captured by the parser.

## Inheritance

- object
- RtfSyntaxWriter

Filter members 

Show inherited

## Methods

`public static string Write(RtfSyntaxTree tree)` [#](#method-write-officeimo-rtf-syntax-rtfsyntaxtree)

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

Serializes a syntax tree without applying semantic normalization.

Parameters

**tree OfficeIMO.Rtf.Syntax.RtfSyntaxTree required**

Returns

`string`

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

<!-- PowerForge markdown artifact sha256:88D2D45716F55B21B076348BE32EDD983A5229BCDC10A8A37559ADFFD6BBE438 -->
