跳至页脚内容
PM > Install-Package IronWord

IronWord

Nuget NuGetPassed 查看最新消息:

跨平台支持

为在.NET 10, 9, 8, 7, 6, 5, Core, Standard, or Framework上运行的C#, F#, & VB.NET而设计

NET 标志
Visual Studio 标志 Visual Studio 标志
NuGet 标志 NuGet 标志
ReSharper
Windows 标志
Linux 标志
Mac 标志
Docker 标志 Docker 标志
Azure 标志 Azure 标志
AWS 标志 AWS 标志

一个以准确性、易用性和速度优先的 C# Word 库。

IronWord 是一个用于在 .NET 中生成和编辑 Word 文档的 C# Word DOCx 库。其用户友好的 API 允许开发者在数分钟内将 Word 文档处理功能添加到 .NET 项目中。

立即获取您的免费30 天试用密钥

创建和编辑 DOCX 文件。无需 Office Interop。

兼容性

.NET版本
  • C#, VB.NET, F#语言
  • .NET Core (10, 9, 8, 7, 6, 5和3.1+)
  • .NET Standard (2.0+)
  • .NET Framework (4.6.2+)
.NET项目类型
  • Web (Blazor 和 WebForms)
  • 移动设备 (Xamarin & MAUI)
  • 桌面 (WPF 和 MAUI)
  • 控制台 (应用程序及库)
应用环境
  • Windows (10+, Server 2016+)
  • Linux (Ubuntu, Debian, CentOS, 等)
  • iOS (12+)
  • 安卓 API 21+ (v5 “Lollipop”)
  • Docker (Windows, Linux, Azure)
  • Azure (VPS, WebApp, Function)
  • AWS (EC2, Lambda)
集成开发环境
  • Microsoft Visual Studio
  • JetBrains ReSharper & Rider
操作系统及处理器
  • Windows, macOS, Linux, iOS, Android
  • x64,x86,ARM
二进制认证
  • DigiCert 签名的二进制文件

文档结构

读取和编辑Word
  • 提取文本和图像
编辑页面设置
  • 纸张尺寸
  • 页面方向
  • 自定义边距
  • 背景颜色
添加段落
  • 添加和删除文本运行
  • 添加图像
  • 添加形状
  • 设置样式
  • 设置对齐方式 (左对齐、居中、右对齐和两端对齐)
  • 添加项目符号和编号列表
添加表格
  • 添加行和列 (插入前和后)
  • 删除行和列
  • 设置和获取单元格值 (索引)
  • 合并和拆分单元格
  • 设置边框 (值、大小、间距和颜色)
  • 设置布局尺寸

文档元素

添加TextRuns
  • 文本内容 (添加、附加和拆分)
  • 设置样式 (字体系列和大小、颜色、粗体和斜体、删除线、下划线、上标和下标)
  • 嵌入图像
添加图像
  • 加载图像 (文件与文件流)
  • 设置文本换行
  • 设置尺寸 (宽度和高度)
  • 设置位置偏移
  • 设置与角落的距离
添加形状
  • 设置形状类型
  • 设置文本换行
  • 设置尺寸 (宽度和高度)
  • 设置位置偏移
  • 设置旋转

每次开发人员询问,回答都是是的!IronWord

switch(faqQuestions)
{ 
    case "Can I deploy my application using the library to Linux, macOS, or Windows, including Docker containers?": return "YES";
    case "Can I render pixel-perfect PDFs from complex HTML5, CSS3, and JavaScript?": return "YES";
    case "Is the library thread-safe for use in highly concurrent, multi-threaded server applications and APIs?": return "YES";
    case "Can I set custom viewport dimensions and print media CSS to control responsive layouts?": return "YES";
    case "Is IronPDF compatible with Azure Functions?": return "YES";
    case "Can I permanently redact sensitive text and images from PDF documents?": return "YES";
    case "Can I generate a PDF from a URL that requires authentication via custom headers, cookies, or form logins?": return "YES";
    case "Can I access PDF DOM through ObjectModel property?": return "YES";
    case "Can I programmatically fill, read, and flatten interactive AcroForm?": return "YES";
    case "Does it support generating PDF/A and PDF/UA compliant documents for archiving and accessibility standards?": return "YES";
    case "Can I secure a document with 256-bit AES password encryption and set user permissions?": return "YES";
    case "Can I apply and verify digital signatures on a PDF using X.509 certificates?": return "YES";
    case "Can I test IronPDF in my live project for free now?": return "YES, click here to start your 30-day free trial";
}

IronWord能否在未安装Microsoft Office或Office Interop的情况下创建、加载和编辑.docx文件?是的!

是否在Windows、Linux、macOS、Docker和Azure上的所有主要.NET版本中全面跨平台?是的!

文本样式(字体、大小、颜色、删除线、加粗/斜体)能否在运行级别控制?是的!

是否有完整API用于构建和编辑表格,包括单元格合并、边框、阴影和列宽?是的!

能否通过控制尺寸和对齐从文件或流中插入图像?是的!

是否支持通过单独的TextRuns和Paragraphs插入和编辑内容?是的!

能否将文档保存到MemoryStream或byte[]以进行HTTP交付而无需写入磁盘?是的!

是否支持在单个文件中具有不同页面布局的多个文档部分?是的!

能否创建带有自定义缩进和嵌套的项目符号和编号列表?是的!

许可证是否支持服务器端,支持并发处理且无线程限制?是的!

处理格式错误的文档是否良好,以防止批处理期间崩溃?是的!

我现在能否在我的项目中免费测试IronWord?是的! Icon Arrow related to 每次开发人员询问,回答都是是的!IronWord 点击此处开始您的30天免费试用

Floating Left Top related to 每次开发人员询问,回答都是是的!IronWord
Floating Right Bottom related to 每次开发人员询问,回答都是是的!IronWord
一流的工程,
24小时支持
  • Support Team Member 2 related to C# Word DOCX 库(无需使用 Office Interop)| IronWord. C# DOCX 库。在 .NET 应...
  • Support Team Member 4 related to C# Word DOCX 库(无需使用 Office Interop)| IronWord. C# DOCX 库。在 .NET 应...
  • Support Team Member 6 related to C# Word DOCX 库(无需使用 Office Interop)| IronWord. C# DOCX 库。在 .NET 应...
  • Support Team Member 7 related to C# Word DOCX 库(无需使用 Office Interop)| IronWord. C# DOCX 库。在 .NET 应...
  • Support Team Member Iron related to C# Word DOCX 库(无需使用 Office Interop)| IronWord. C# DOCX 库。在 .NET ...
联系专家
准备开始了吗?
Nuget 下载 35,581 | 版本: 2026.3 刚刚发布
Still Scrolling Icon

还在滚动吗?

想快速获得证据? PM > Install-Package IronWord
运行示例 观看您的数据变成 Word 文档。

Iron Support Team

We're online 24 hours, 5 days a week.
Chat
Email
Call Me