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 天试用密钥
无需信用卡或创建账户