跳過到頁腳內容
PM > Install-Package IronWord

IronWord

Nuget NuGetPassed 看看有什麼新功能:

跨平台支援

設計為C#, F#, & VB.NET運行於.NET 10, 9, 8, 7, 6, 5, Core, Standard,或 Framework

NET 標誌
Visual Studio 標誌 Visual Studio 標誌
NuGet 標誌 NuGet 標誌
ReSharper
Windows 標誌
Linux 標誌
Mac 標誌
Docker 標誌 Docker 標誌
Azure 標誌 Azure 標誌
AWS 標誌 AWS 標誌

優先考慮精確性、易用性和速度的 C# Word 文檔庫。

IronWord 是一個 C# Word DOCx 庫,用於在 .NET 中生成和編輯 Word 文檔。其用戶友好的 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 專案類型
  • 網頁 (Blazor & WebForms)
  • 移動 (Xamarin & MAUI)
  • 桌面 (WPF & MAUI)
  • 命令列 (應用程式 & 函式庫)
應用環境
  • Windows (10+, Server 2016+)
  • Linux (Ubuntu, Debian, CentOS, 等)
  • iOS (12+)
  • Android API 21+ (v5 “Lollipop”)
  • Docker (Windows, Linux, Azure)
  • Azure (VPS, WebApp, Function)
  • AWS (EC2, Lambda)
IDE
  • 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 文件庫。在...
  • Support Team Member 4 related to C# Word DOCX 文件庫(不使用 Office Interop)| IronWord. C# DOCX 文件庫。在...
  • Support Team Member 6 related to C# Word DOCX 文件庫(不使用 Office Interop)| IronWord. C# DOCX 文件庫。在...
  • Support Team Member 7 related to C# Word DOCX 文件庫(不使用 Office Interop)| IronWord. C# DOCX 文件庫。在...
  • Support Team Member Iron related to C# Word DOCX 文件庫(不使用 Office Interop)| IronWord. C# DOCX 文件庫。...
與專家交談
準備好開始了嗎?
Nuget 下載 36,374 | 版本: 2026.3 剛剛發布
Still Scrolling Icon

還在捲動嗎?

想要快速證明? PM > Install-Package IronWord
執行範例 觀看您的資料變成 Word doc。

鋼鐵支援團隊

我們每週 5 天,每天 24 小時在線上。
聊天
電子郵件
打電話給我