Avalonia.Controls.Documents
12.3.1
Prefix Reserved
dotnet add package Avalonia.Controls.Documents --version 12.3.1
NuGet\Install-Package Avalonia.Controls.Documents -Version 12.3.1
<PackageReference Include="Avalonia.Controls.Documents" Version="12.3.1" />
<PackageVersion Include="Avalonia.Controls.Documents" Version="12.3.1" />
<PackageReference Include="Avalonia.Controls.Documents" />
paket add Avalonia.Controls.Documents --version 12.3.1
#r "nuget: Avalonia.Controls.Documents, 12.3.1"
#:package Avalonia.Controls.Documents@12.3.1
#addin nuget:?package=Avalonia.Controls.Documents&version=12.3.1
#tool nuget:?package=Avalonia.Controls.Documents&version=12.3.1
Avalonia.Controls.Documents
Core document model library for Avalonia rich text controls. Provides rope-based text storage, a hierarchical document tree, text pointers, undo/redo, and snapshotting.
Features
- Rope-based text storage (
RopeTextStore) with O(log n) insert and delete - Document tree model (
TextDocument,TextDocumentNode) for structural editing - Text pointer API (
TextPointer,TextRange) with generation-based invalidation - Undo/Redo (
UndoManager) with structural snapshot support - FlowDocument model with blocks (paragraphs, lists, tables, sections) and inlines
- Document snapshots for thread-safe background serialization
Quick Start
var document = new FlowDocument();
var paragraph = new Paragraph();
paragraph.Inlines.Add(new Run("Hello, world!"));
document.Blocks.Add(paragraph);
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 (>= 12.0.3)
- AvaloniaUI.Licensing (>= 3.1.2)
- SixLabors.ImageSharp (>= 4.1.2)
-
net8.0
- Avalonia (>= 12.0.3)
- AvaloniaUI.Licensing (>= 3.1.2)
- SixLabors.ImageSharp (>= 4.1.2)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on Avalonia.Controls.Documents:
| Package | Downloads |
|---|---|
|
Avalonia.Controls.Markdown
Markdown rendering control for Avalonia applications |
|
|
Avalonia.Controls.Documents.Serialization.Html
HTML serializer for Avalonia.Controls.Documents |
|
|
Avalonia.Controls.RichTextEditor
Interactive rich text editor control for Avalonia with selection, formatting, and undo/redo support |
|
|
Avalonia.Controls.Documents.Serialization.Rtf
RTF serializer for Avalonia.Controls.Documents with high-fidelity import and export support |
|
|
Avalonia.Controls.Documents.Serialization.Docx
DOCX serializer for Avalonia.Controls.Documents based on Open XML |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 12.3.1 | 2,577 | 10/8/2026 |
| 12.3.0 | 7,383 | 9/11/2026 |
| 12.2.3 | 16,349 | 8/20/2026 |
| 12.2.2 | 35,931 | 7/31/2026 |
| 12.2.1 | 663 | 7/29/2026 |
| 12.2.0 | 10,256 | 7/23/2026 |
| 12.1.5 | 9,226 | 6/29/2026 |
| 12.1.4 | 9,927 | 6/22/2026 |
| 12.1.3 | 812 | 6/9/2026 |
| 12.1.2 | 839 | 6/2/2026 |
| 12.1.1 | 1,440 | 5/14/2026 |
| 12.1.0 | 3,176 | 5/12/2026 |
## 12.3.1
### Security
- SixLabors.ImageSharp goes from 4.0.0 to 4.1.2, which fixes GHSA-jjfr-hcj7-qf5w, GHSA-ffp7-56pq-64mr, GHSA-j9gm-c75j-xc9q, GHSA-j3p4-wp97-rph4, GHSA-4q3p-rj5x-xv7p, GHSA-wmxv-xphr-5c9g and GHSA-gwg2-r3hj-4w44 (out-of-bounds writes in the TIFF CCITT encoders and ICC LUT16 handling, unchecked allocation in ICC CLUT parsing, stale data from the EXR ZIP decoder, a BigTIFF decode loop that never progresses, and an unchecked index in histogram equalization). Nothing else changes.