word格式替换,替换隐藏文本

            Word.Document doc = IWordHelper.App.ActiveDocument;


            doc.ActiveWindow.Selection.WholeStory();

            doc.ActiveWindow.Selection.Find.Font.Hidden = -1;
            doc.ActiveWindow.Selection.Find.Execute("", Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, 
                true, Word.WdFindWrap.wdFindContinue, true, "", Word.WdReplace.wdReplaceAll, Type.Missing, 
                Type.Missing, Type.Missing, Type.Missing);

你可能感兴趣的:(VSTO,C#)