Compartilhar via


Shading.ForegroundPatternColor Property (Word)

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. Read/write.

Syntax

expression .ForegroundPatternColor

expression Required. A variable that represents a Shading object.

Remarks

This property can be any valid WdColor constant or a value returned by Visual Basic's RGB function.

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

See Also

Concepts

Shading Object

Shading Object Members