日誌物件樹
在構建Word文件時記錄物件樹為開發者提供了關鍵的除錯見解和驗證工具,使其能夠快速識別並修正文件結構中的錯誤或不一致之處。 分析物件樹有助於性能優化,幫助開發者識別並解決構建過程中的低效問題。 總體而言,記錄物件樹簡化了開發過程,確保高效地建立高品質的Word文件。
準備開始了嗎?
Nuget 下載 49,323 | 版本: 2026.7 剛剛發布
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文件。