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 58,016版本:2026.10刚刚发布

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 IronWord
预约您的免费现场演示
Booking Badge

深受全球数百万工程师信赖

Iron Software 的客户徽标
获取您的无义务咨询
您的资料将始终保密。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
深受全球数百万工程师信赖
立即获取您的免费30 天试用密钥。
无需信用卡或创建账户
C# 用于 PDF 的 NuGet 库
通过 NuGet 安装

版本: 2026.10

PM > Install-Package IronWord
nuget.org/packages/IronWord/
  1. 在解决方案资源管理器中,右键点击引用,管理 NuGet 包
  2. 选择浏览并搜索“IronWord”
  3. 选择包并安装
C# PDF DLL
下载 DLL

版本: 2026.10

  1. 下载并解压IronWord到你的解决方案目录中的~/Libs等位置
  2. 在Visual Studio解决方案资源管理器中,右键单击引用。选择浏览,“IronWord.dll”

许可证价格从$999起