返回或设置 Shading 对象的前景色。该颜色是应用于底纹图案的点和线的颜色。WdColorIndex,可读写。
| WdColorIndex 可以是下列 WdColorIndex 常量之一: |
| wdAuto |
| wdBlack |
| wdBlue |
| wdBrightGreen |
| wdByAuthor |
| wdDarkBlue |
| wdDarkRed |
| wdDarkYellow |
| wdGray25 |
| wdGray50 |
| wdGreen |
| wdNoHighlight |
| wdPink |
| wdRed |
| wdTeal |
| wdTurquoise |
| wdViolet |
| wdWhite |
| wdYellow |
expression.ForegroundPatternColorIndex
expression 必需。该表达式返回“应用于”列表中的一个对象。
本示例为所选内容的底纹设置不同的前景色和背景色。
With Selection.Shading
.Texture = wdTexture30Percent
.ForegroundPatternColorIndex = wdBlue
.BackgroundPatternColorIndex = wdYellow
End With