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,设置底纹无效
{
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,设置底纹无效
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货