ForegroundPatternColorIndex 属性

       

返回或设置 Shading 对象的前景色。该颜色是应用于底纹图案的点和线的颜色。WdColorIndex,可读写。

expression.ForegroundPatternColorIndex

expression   必需。该表达式返回“应用于”列表中的一个对象。

示例

本示例为所选内容的底纹设置不同的前景色和背景色。

With Selection.Shading
    .Texture = wdTexture30Percent
    .ForegroundPatternColorIndex = wdBlue
    .BackgroundPatternColorIndex = wdYellow
End With