如何在C#中使用Microsoft.Office.Interop.Word查找段落样式和字符样式? [英] How to find paragraphs styles and char style using Microsoft.Office.Interop.Word in C#?

查看:1047
本文介绍了如何在C#中使用Microsoft.Office.Interop.Word查找段落样式和字符样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我在MS字中写了3行。

喜欢这个

am Mahendra Kumar Das

MCA

www.google.com < br $>


如何找到款式和字母风格

喜欢外出

am Mahendra Kumar Das

Suppose I have write 3 lines in MS word.
like This
I am Mahendra Kumar Das
MCA
www.google.com

How to find paragraph style and char style
like out put

I am Mahendra Kumar Das

MCA

www.google.com

推荐答案

请参考:

如何:以编程方式格式化文档中的文本 [ ^ ]

如何:以编程方式定义ine和文档中的选择范围 [ ^ ]



Paragraph.Style属性 [ ^ ]
Please refer:
How to: Programmatically Format Text in Documents[^]
How to: Programmatically Define and Select Ranges in Documents[^]
and
Paragraph.Style Property [^]


这篇关于如何在C#中使用Microsoft.Office.Interop.Word查找段落样式和字符样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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