Shading.ForegroundPatternColorIndex 属性 (Word)
返回或设置应用于 底纹 的对象的前景颜色。 此颜色将应用于的点和线的底纹图案。 读/写 WdColorIndex 。
语法
expression. ForegroundPatternColorIndex
表达式是必需的。 一个代表“着色”对象的变量。
示例
本示例为选定内容的底纹设置不同的前景色和背景色。
With Selection.Shading
.Texture = wdTexture30Percent
.ForegroundPatternColorIndex = wdBlue
.BackgroundPatternColorIndex = wdYellow
End With
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。