Avalonia.Controls.Documents.Serialization.Rtf
12.2.3
Prefix Reserved
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
<PackageReference Include="Avalonia.Controls.Documents.Serialization.Rtf" Version="12.2.3" />
<PackageVersion Include="Avalonia.Controls.Documents.Serialization.Rtf" Version="12.2.3" />
<PackageReference Include="Avalonia.Controls.Documents.Serialization.Rtf" />
paket add Avalonia.Controls.Documents.Serialization.Rtf --version 12.2.3
#r "nuget: Avalonia.Controls.Documents.Serialization.Rtf, 12.2.3"
#:package Avalonia.Controls.Documents.Serialization.Rtf@12.2.3
#addin nuget:?package=Avalonia.Controls.Documents.Serialization.Rtf&version=12.2.3
#tool nuget:?package=Avalonia.Controls.Documents.Serialization.Rtf&version=12.2.3
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
IDocumentSerializerinterface
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 | Versions 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. |
-
net10.0
- Avalonia.Controls.Documents (>= 12.2.3)
- AvaloniaUI.Licensing (>= 3.1.1)
-
net8.0
- Avalonia.Controls.Documents (>= 12.2.3)
- AvaloniaUI.Licensing (>= 3.1.1)
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.