Avalonia.Controls.Documents
12.1.5
Prefix Reserved
dotnet add package Avalonia.Controls.Documents --version 12.1.5
NuGet\Install-Package Avalonia.Controls.Documents -Version 12.1.5
<PackageReference Include="Avalonia.Controls.Documents" Version="12.1.5" />
<PackageVersion Include="Avalonia.Controls.Documents" Version="12.1.5" />
<PackageReference Include="Avalonia.Controls.Documents" />
paket add Avalonia.Controls.Documents --version 12.1.5
#r "nuget: Avalonia.Controls.Documents, 12.1.5"
#:package Avalonia.Controls.Documents@12.1.5
#addin nuget:?package=Avalonia.Controls.Documents&version=12.1.5
#tool nuget:?package=Avalonia.Controls.Documents&version=12.1.5
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.0.8)
-
net8.0
- Avalonia (>= 12.0.3)
- AvaloniaUI.Licensing (>= 3.0.8)
NuGet packages (6)
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.Documents.Serialization.Rtf
RTF serializer for Avalonia.Controls.Documents with high-fidelity import and export support |
|
|
Avalonia.Controls.RichTextEditor
Interactive rich text editor control for Avalonia with selection, formatting, and undo/redo support |
|
|
Avalonia.Controls.Documents.Serialization.Xaml
XAML serializer for Avalonia.Controls.Documents |
GitHub repositories
This package is not used by any popular GitHub repositories.
## 12.1.5
### Fixes
- Pressing Enter inside a formatted list item now starts the next bullet in the same font, size, colour and decorations instead of reverting to the document default. Splitting a list item created the new item's paragraph without carrying the formatting active at the caret — unlike a non-list paragraph split — so a bullet typed in, say, Arial 12 produced a following bullet in the default font.
- Structurally moving a block or paragraph that hosts an embedded control (`BlockUIContainer` or `RichInlineUIContainer`) — for example unwrapping a list item out of a list — no longer throws "control already has a visual parent". A moved element realizes a fresh render node, and the embedded control is now released from its previous node before the new one adopts it.