读书人

C#操作WORD设置底纹无效解决思路

发布时间: 2012-01-22 22:38:43 作者: rapoo

C#操作WORD设置底纹无效
if (doc.Application.Selection.Font.Shading.Texture == Word.WdTextureIndex.wdTextureNone)
{
doc.Application.Selection.Font.Shading.Texture = Word.WdTextureIndex.wdTexture20Percent;
doc.Application.Selection.Font.Shading.ForegroundPatternColor = Word.WdColor.wdColorBlack;
doc.Application.Selection.Font.Shading.BackgroundPatternColor = Word.WdColor.wdColorWhite;
}
else
{
doc.Application.Selection.Font.Shading.Texture = Word.WdTextureIndex.wdTextureNone;
}
doc.Application.Selection.Range.Text += "感言:\n";
录制的VBA,设置底纹无效

[解决办法]
不设

读书人网 >C#

热点推荐