日誌物件樹
在建立 WORD 文件時記錄物件樹,能為開發人員提供關鍵的除錯洞察與驗證工具,使其能夠迅速識別並修正文件結構中的錯誤或不一致之處。 透過分析物件樹,開發人員得以識別並解決建構過程中的效能瓶頸,從而協助進行效能優化。 總體而言,透過物件樹進行記錄可簡化開發流程,確保高效產出高品質的 WORD 文件。
準備開始了嗎?
Nuget 下載 44,103 | 版本: 2026.5 just released
using IronWord;
using IronWord.Models;
using System.Linq;
WordDocument docx = new WordDocument("Table.docx");
// Log object tree of the whole document
docx.LogObjectTree();
// Log object tree of table 0
docx.Children.OfType<Table>().First().LogObjectTree();
Imports IronWord
Imports IronWord.Models
Imports System.Linq
Private docx As New WordDocument("Table.docx")
' Log object tree of the whole document
docx.LogObjectTree()
' Log object tree of table 0
docx.Children.OfType(Of Table)().First().LogObjectTree()
Install-Package IronWord
在建立 WORD 文件時記錄物件樹,能為開發人員提供關鍵的除錯洞察與驗證工具,使其能夠迅速識別並修正文件結構中的錯誤或不一致之處。 透過分析物件樹,開發人員得以識別並解決建構過程中的效能瓶頸,從而協助進行效能優化。 總體而言,透過物件樹進行記錄可簡化開發流程,確保高效產出高品質的 WORD 文件。