IRONSOFTWAREHOME
Log Object Tree
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
Log Object Tree

Log Object Tree

Logging the object tree during the construction of a Word document provides developers with essential debugging insights and verification tools, enabling them to quickly identify and rectify errors or inconsistencies in the document's structure. Analysis of the object tree aids in performance optimization by helping developers identify and address inefficiencies in the construction process. Overall, logging the object tree streamlines development, ensuring the efficient creation of high-quality Word documents.

Explore Document Elements with IronWord Tutorial.
View on GitHub

Ready to Get Started?

Nuget Downloads 56,401Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required