Class ShadowFormat (PowerPoint VBA)

The class ShadowFormat represents shadow formatting for a shape.

Set

To use a ShadowFormat class variable it first needs to be instantiated, for example

Dim sft as ShadowFormat
Set sft = ActiveWindow.RangeFromPoint.Shadow

The following procedures can be used to set variables of type ShadowFormat: ChartFormat.Shadow, Shape.Shadow, ShapeRange.Shadow and TableBackground.Shadow

Themes

The following procedures in this class have been grouped together and are described on a separate theme page

Format with its procedures ForeColor, Style and Visible

Properties

Blur returns or sets the blur radius of the specified shadow, in points.

ActiveWindow.RangeFromPoint.Shadow.Blur =

Obscured determines whether the shadow of the specified shape appears filled in and is obscured by the shape.

ActiveWindow.RangeFromPoint.Shadow.Obscured = msoTrue

OffsetX returns or sets the horizontal offset of the shadow from the specified shape, in points.

ActivePresentation.Slides(1).Shapes(1).Shadow.OffsetX = 5

OffsetY returns or sets the vertical offset of the shadow from the specified shape, in points.

ActivePresentation.Slides(1).Shapes(1).Shadow.OffsetY = 3

Parent returns the parent object for the specified object.

Dim objParent As Object
Set objParent = ActiveWindow.RangeFromPoint.Shadow.Parent

RotateWithShape returns or sets whether the specified shadow rotates when the shape it is associated with rotates.

ActiveWindow.RangeFromPoint.Shadow.RotateWithShape = msoTrue

Size returns or sets the size of the specified shadow as a percentage of the shape size, from 0 to 200.

ActiveWindow.RangeFromPoint.Shadow.Size =

Transparency returns or sets the degree of transparency of the specified fill, shadow, or line as a value between 0.0 (opaque) and 1.0 (clear).

ActivePresentation.Slides(1).Shapes(1).Shadow.Transparency = 0.5

Type represents the type of shadow.

ActiveWindow.RangeFromPoint.Shadow.Type = msoShadowMixed