Avalonia.Controls.Documents.Serialization.Docx
12.4.1
Prefix Reserved
See the version list below for details.
dotnet add package Avalonia.Controls.Documents.Serialization.Docx --version 12.4.1
NuGet\Install-Package Avalonia.Controls.Documents.Serialization.Docx -Version 12.4.1
<PackageReference Include="Avalonia.Controls.Documents.Serialization.Docx" Version="12.4.1" />
<PackageVersion Include="Avalonia.Controls.Documents.Serialization.Docx" Version="12.4.1" />
<PackageReference Include="Avalonia.Controls.Documents.Serialization.Docx" />
paket add Avalonia.Controls.Documents.Serialization.Docx --version 12.4.1
#r "nuget: Avalonia.Controls.Documents.Serialization.Docx, 12.4.1"
#:package Avalonia.Controls.Documents.Serialization.Docx@12.4.1
#addin nuget:?package=Avalonia.Controls.Documents.Serialization.Docx&version=12.4.1
#tool nuget:?package=Avalonia.Controls.Documents.Serialization.Docx&version=12.4.1
Avalonia.Controls.Documents.Docx
DOCX (Open XML) serialization support for Avalonia.Controls.Documents. Enables reading and writing FlowDocument content in the DOCX format.
Features
- Import DOCX files into a FlowDocument
- Export FlowDocument content to DOCX format
- Implements the
IDocumentSerializerinterface
Quick Start
// Read a DOCX file
var serializer = new DocxSerializer();
var document = serializer.Deserialize(stream);
// Write a DOCX 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)
- DocumentFormat.OpenXml (>= 3.4.1)
-
net8.0
- Avalonia.Controls.Documents (>= 12.4.1)
- AvaloniaUI.Licensing (>= 3.1.2)
- DocumentFormat.OpenXml (>= 3.4.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.0.0-rc2 | 134 | 9/10/2026 |
| 12.4.1 | 103 | 11/5/2026 |
| 12.4.0 | 10,499 | 10/28/2026 |
| 12.3.1 | 8,684 | 10/8/2026 |
| 12.3.0 | 3,057 | 9/11/2026 |
| 12.2.3 | 285 | 8/20/2026 |
| 12.2.2 | 17,361 | 7/31/2026 |
| 12.2.1 | 126 | 7/29/2026 |
| 12.2.0 | 5,166 | 7/23/2026 |
| 12.1.5 | 1,326 | 6/29/2026 |
| 12.1.4 | 143 | 6/22/2026 |
| 12.1.3 | 134 | 6/9/2026 |
| 12.1.2 | 152 | 6/2/2026 |
| 12.1.1 | 137 | 5/14/2026 |
| 12.1.0 | 3,809 | 5/12/2026 |
## 12.4.0
### 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.
### Features
- Bookmarks round-trip, so table of contents entries and cross-references (`w:hyperlink w:anchor`) navigate after loading. A `w:bookmarkStart` names the paragraph holding it (`Block.Bookmarks`); one between paragraphs names the next paragraph, and Word's `_GoBack` last-edit marker is skipped. Writing puts a `w:bookmarkStart`/`w:bookmarkEnd` pair around the content of every named paragraph, in the body, a list or a table cell, with ids unique in the document. The model keeps a bookmark's start only, so a bookmark that covered part of a paragraph or several paragraphs comes back around its whole first paragraph.
- A markdown heading that a link targets by its slug (`[x](#getting-started)`) is written as a bookmark under that slug, so the link navigates in Word. A heading no link targets gets none.