Shading Object (Word)
Published: July 16, 2012
Contains shading attributes for an object.
Use the Shading property to return the Shading object. The following example applies fine gray shading to the first paragraph in the active document.
The following example applies shading with different foreground and background colors to the selection.
With Selection.Shading .Texture = wdTexture20Percent .ForegroundPatternColorIndex = wdBlue .BackgroundPatternColorIndex = wdYellow End With
The following example applies a vertical line texture to the first row in the first table in the active document.