Shadow property as it applies to the Font object.
Determines whether the specified text has a shadow. Read/write MsoTriState.
MsoTriState can be one of these MsoTriState constants. |
msoCTrue |
msoFalse The specified text doesn't have a shadow. |
msoTriStateMixed Some of the text has a shadow and some doesn't. |
msoTriStateToggle |
msoTrue The specified text has a shadow. |
expression.Shadow
expression Required. An expression that returns one of the above objects.
Shadow property as it applies to the Shape and ShapeRange objects.
Returns a read/only ShadowFormat object that contains shadow formatting properties for the specified shape or shapes.
expression.Shadow
expression Required. An expression that returns one of the above objects.
Example
As it applies to the Font object.
This example adds a shadow to the title text on slide one in the active presentation.
Application.ActivePresentation.Slides(1).Shapes.Title _
.TextFrame.TextRange.Font.Shadow = True
As it applies to the Shape and ShapeRange objects.
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