如何在C#中编写代码以找到标题的格式,如粗体字母或WORD文件中的某种颜色? [英] How to write a code in C # to find the formatting of the caption like bold letters or a certain color in a WORD file?

查看:88
本文介绍了如何在C#中编写代码以找到标题的格式,如粗体字母或WORD文件中的某种颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力学习如何扫描单词的文件并进入我的程序。文件名,突出显示的单词等。



我尝试过:



我尝试了一个使用documenFormat.xml目录的代码,我找不到字体大小,颜色和文件名等。

I've been trying for a long time to learn how to scan a word's file and get into my program. The file name, the highlighted words, etc.

What I have tried:

I tried a code that uses the documenFormat.xml directory and I could not find the size of the font and color and file name etc.

推荐答案

你需要研究Word文档中包含的数据的结构。请参阅文档界面(Microsoft.Office.Interop。字)| Microsoft Docs [ ^ ]。
You need to study the structure of the data contained in the Word document. See Document Interface (Microsoft.Office.Interop.Word) | Microsoft Docs[^].


这篇关于如何在C#中编写代码以找到标题的格式,如粗体字母或WORD文件中的某种颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆