Avalonia.Controls.Documents.Serialization.Rtf
12.4.1
Prefix Reserved
See the version list below for details.
dotnet add package Avalonia.Controls.Documents.Serialization.Rtf --version 12.4.1
NuGet\Install-Package Avalonia.Controls.Documents.Serialization.Rtf -Version 12.4.1
<PackageReference Include="Avalonia.Controls.Documents.Serialization.Rtf" Version="12.4.1" />
<PackageVersion Include="Avalonia.Controls.Documents.Serialization.Rtf" Version="12.4.1" />
<PackageReference Include="Avalonia.Controls.Documents.Serialization.Rtf" />
paket add Avalonia.Controls.Documents.Serialization.Rtf --version 12.4.1
#r "nuget: Avalonia.Controls.Documents.Serialization.Rtf, 12.4.1"
#:package Avalonia.Controls.Documents.Serialization.Rtf@12.4.1
#addin nuget:?package=Avalonia.Controls.Documents.Serialization.Rtf&version=12.4.1
#tool nuget:?package=Avalonia.Controls.Documents.Serialization.Rtf&version=12.4.1
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.4.1)
- AvaloniaUI.Licensing (>= 3.1.2)
-
net8.0
- Avalonia.Controls.Documents (>= 12.4.1)
- AvaloniaUI.Licensing (>= 3.1.2)
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 | 139 | 9/10/2026 |
| 12.4.1 | 65 | 11/5/2026 |
| 12.4.0 | 6,761 | 10/28/2026 |
| 12.3.1 | 11,673 | 10/8/2026 |
| 12.3.0 | 4,473 | 9/11/2026 |
| 12.2.3 | 14,148 | 8/20/2026 |
| 12.2.2 | 3,779 | 7/31/2026 |
| 12.2.1 | 232 | 7/29/2026 |
| 12.2.0 | 5,300 | 7/23/2026 |
| 12.1.5 | 1,482 | 6/29/2026 |
| 12.1.4 | 9,198 | 6/22/2026 |
| 12.1.3 | 244 | 6/9/2026 |
| 12.1.2 | 197 | 6/2/2026 |
| 12.1.1 | 478 | 5/14/2026 |
| 12.1.0 | 547 | 5/12/2026 |
## 12.4.0
### Features
- Bookmarks round-trip, so links into the document navigate after loading and after saving. `{\*\bkmkstart name}` names the paragraph holding it (`Block.Bookmarks`) and is written around every named paragraph; a link to a bookmark reads from and writes as `HYPERLINK \l "name"` (`HYPERLINK "file" \l "name"` reads as `file#name`). It was written as `HYPERLINK "#name"`, which Word treats as a file name. A markdown heading that a link targets by its slug is written as a bookmark under that slug.
### Fixes
- A markdown heading or code block (or any block kind registered for a `Paragraph` subclass) is written as a paragraph. The writer recognised only the built-in paragraph kind and dropped these blocks with their text.