单击显示/隐藏段落显示单词2007中的隐藏文本 [英] Click on Show/Hide Paragraph display hidden text in word 2007

查看:110
本文介绍了单击显示/隐藏段落显示单词2007中的隐藏文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用Word Document VSTO,以下是代码...

Word。

Hi,

I am working with Word Document VSTO, Following is the code...

Word.

全局 wordApp = new Word。 全局 ();

wordApp.ActiveDocument.Tables [1] .Rows [1] .Range.Font.Hidden = 1;

Global wordApp = new Word.Global();

wordApp.ActiveDocument.Tables[1].Rows[1].Range.Font.Hidden = 1;

在上面的代码中我隐藏了第一行的表,我希望即使有人点击Word中的显示/隐藏段落按钮后它也不应该可见。可能吗?

推荐答案

我不明白您的第一行代码,这可能会导致您遇到问题。如果你想要一个引用当前Word.Application的对象变量,那么这样的事情更合适:

Word.Application wdApp = Globals.ThisAddin.Application

在回答你的问题,不,你不能指明文本的某些部分可以被取消隐藏而其他部分则不能。 Word与Excel的"非常隐藏"无关。

你想用这个来完成什么?
I don't understand your first line of code, which could perhaps cause you problems down the road. If you want an object variable that refers to the current Word.Application then something like this is more appropriate:

Word.Application wdApp = Globals.ThisAddin.Application

But in answer to your question, no, you can't specify that certain sections of text can be unhidden and others cannot. Word has no equivalent to Excel's "very hidden". 

What are you trying to accomplish with this?


这篇关于单击显示/隐藏段落显示单词2007中的隐藏文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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