Table of contents
Collapse the table of content
Expand the table of content

ShapeRange.Shadow Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns a ShadowFormat object that represents the shadow formatting for the specified shape.


expression. Shadow

_expression_A variable that represents a ShapeRange object.


This example adds an arrow with shadow formatting and fill color to the first page in the active document.

Sub SetShapeShadow() 
 With ActiveDocument.Pages(1).Shapes.AddShape( _ 
 Type:=msoShapeRightArrow, Left:=72, _ 
 Top:=72, Width:=64, Height:=43) 
 .Shadow.Type = msoShadow5 
 .Fill.ForeColor.RGB = RGB(Red:=255, Green:=0, Blue:=255) 
 End With 
End Sub
© 2018 Microsoft