Shape.Shadow Property
Returns a ShadowFormat object that contains shadow formatting properties for the specified shape. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property Shadow As ShadowFormat
Get
'Usage
Dim instance As Shape
Dim value As ShadowFormat
value = instance.Shadow
ShadowFormat Shadow { get; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.ShadowFormat
Examples
This example adds a shadowed rectangle to slide one in the active presentation. The blue, embossed shadow is offset 3 points to the right of and 2 points down from the rectangle.
Set myShap = Application.ActivePresentation.Slides(1).Shapes
With myShap.AddShape(msoShapeRectangle, 10, 10, 150, 90).Shadow.Type = msoShadow17
.ForeColor.RGB = RGB(0, 0, 128)
.OffsetX = 3
.OffsetY = 2
End With