如何使用默认\自动设置为ms-word添加水印

时间:2016-04-19 04:25:48

标签: .net interop office-interop office-addins word-addins

我正在尝试使用office interop在.Net中为word文档添加水印。 我希望文本与这些设置一致;

enter image description here

重点是如何设置Size = Auto和Semitransparent == true?

现在我使用Shapes.AddTextEffect,但这需要手动定义字体大小和Fill.Transparency以及确切的值。

我也尝试执行TextFrame.AutoSize = MsoAutoSize.msoAutoSizeTextToFitShape,但它似乎并没有真正改变字体大小。

那么,如何使用上述设置添加水印文本?感谢。

0 个答案:

没有答案