ForegroundPatternColorIndex Property

Applies To

Shading object.

Description

Returns or sets the color that's applied to the foreground of the Shading object. This color is applied to the dots and lines in the shading pattern. Read/write Long.

Can be one of the following WdColorIndex constants:

  • wdAuto
  • wdBlack
  • wdBlue
  • wdBrightGreen
  • wdDarkBlue
  • wdDarkRed
  • wdDarkYellow
  • wdGray25
  • wdGray50
  • wdGreen
  • wdNoHighlight
  • wdPink
  • wdRed
  • wdTeal
  • wdTurquoise
  • wdViolet
  • wdWhite
  • wdYellow

See Also

BackgroundPatternColorIndex property, ColorIndex property, Shading property, Texture property.

Example

This example applies shading with different foreground and background colors to the selection.

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