ShapeRange.Shadow property (Publisher)

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

Syntax

expression.Shadow

expression A variable that represents a ShapeRange object.

Example

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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.