Show AllShow All

ForegroundPatternColor Property

Returns or sets the 24-bit color that's applied to the foreground of the Shading object. This color is applied to the dots and lines in the shading pattern. Can be any valid WdColor constant or a value returned by Visual Basic's RGB function. Read/write.

expression.ForegroundPatternColor

expression    Required. An expression that returns a Shading object.

Example

This example applies shading with teal dots on a dark red background to the selection.

With Selection.Shading
    .Texture = wdTexture30Percent
    .ForegroundPatternColor = wdColorTeal
    .BackgroundPatternColor = wdColorDarkRed
End With
		
©2003 Microsoft Corporation. All rights reserved.