Avalonia.Controls.Documents.Serialization.Rtf 12.2.3

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Avalonia.Controls.Documents.Serialization.Rtf --version 12.2.3
                    
NuGet\Install-Package Avalonia.Controls.Documents.Serialization.Rtf -Version 12.2.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Avalonia.Controls.Documents.Serialization.Rtf" Version="12.2.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Avalonia.Controls.Documents.Serialization.Rtf" Version="12.2.3" />
                    
Directory.Packages.props
<PackageReference Include="Avalonia.Controls.Documents.Serialization.Rtf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Avalonia.Controls.Documents.Serialization.Rtf --version 12.2.3
                    
#r "nuget: Avalonia.Controls.Documents.Serialization.Rtf, 12.2.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Avalonia.Controls.Documents.Serialization.Rtf@12.2.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Avalonia.Controls.Documents.Serialization.Rtf&version=12.2.3
                    
Install as a Cake Addin
#tool nuget:?package=Avalonia.Controls.Documents.Serialization.Rtf&version=12.2.3
                    
Install as a Cake Tool

Avalonia.Controls.Documents.Rtf

RTF serialization support for Avalonia.Controls.Documents. Enables reading and writing FlowDocument content in RTF format using a streaming tokenizer.

Features

  • Import RTF files into a FlowDocument
  • Export FlowDocument content to RTF format
  • Streaming tokenizer for low-allocation parsing
  • Implements the IDocumentSerializer interface

Quick Start

// Read an RTF file
var serializer = new RtfSerializer();
var document = serializer.Deserialize(stream);

// Write an RTF file
serializer.Serialize(document, outputStream);

Dependencies

  • Avalonia.Controls.Documents

Documentation

See the documentation for more details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Avalonia.Controls.Documents.Serialization.Rtf:

Package Downloads
Avalonia.Controls.RichTextEditor

Interactive rich text editor control for Avalonia with selection, formatting, and undo/redo support

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.0.0-rc2 133 9/10/2026
12.3.1 6,014 10/8/2026
12.3.0 3,952 9/11/2026
12.2.3 14,112 8/20/2026
12.2.2 3,765 7/31/2026
12.2.1 197 7/29/2026
12.2.0 5,271 7/23/2026
12.1.5 1,454 6/29/2026
12.1.4 8,363 6/22/2026
12.1.3 232 6/9/2026
12.1.2 188 6/2/2026
12.1.1 434 5/14/2026
12.1.0 529 5/12/2026

## 12.2.3

### Fixes
- Character formatting set on a nested inline is no longer overwritten by the outer one when writing. RTF character formatting is a flat attribute set, so the writer resolves the inline hierarchy itself - and it merged the two the wrong way round, letting an ancestor's value win over the value on the inline that actually carries it. A font size applied over a selection that spans several paragraphs was written out as the old size for any paragraph whose whole content sits inside a bold, italic or underline element: applying the value there lands on the wrapping element, under a span that still carries the previous size, so the document kept rendering the new size while a save emitted the old one and reloading lost the change. The same inversion affected every character property (font family, colours, letter spacing) and superscript/subscript on nested inlines.