IRONSOFTWAREHOME
日誌物件樹
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

Dim 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()
NuGet Download
PM > Install-Package IronWord
日誌物件樹

日誌物件樹

在構建Word文件時記錄物件樹為開發者提供了關鍵的除錯見解和驗證工具,使其能夠快速識別並修正文件結構中的錯誤或不一致之處。 分析物件樹有助於性能優化,幫助開發者識別並解決構建過程中的低效問題。 總體而言,記錄物件樹簡化了開發過程,確保高效地建立高品質的Word文件。

使用IronWord教程探索文件元素。
在 GitHub 上查看

準備開始了嗎?

Nuget Downloads 56,401版本:2026.9剛剛發布

Key in blue circle

立即免費取得 30 天試用金鑰

Your trial license will be sent to your email address

無任何限制。100% 解鎖。無需信用卡。

bullet_checked無需信用卡或建立帳號無任何限制。100% 解鎖。無需信用卡。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
預約您的免費現場演示
Booking Badge

全球數百萬工程師信賴

Iron Software的客戶標誌
獲取您的無義務諮詢
完成以下表單或發郵件至sales@ironsoftware.com
您的詳細資訊將始終保持機密。
全球數百萬工程師信賴
Iron Software的客戶標誌
立即獲取您的30天試用金鑰
無需信用卡或帳戶建立