Class ShadowFormat (PowerPoint VBA)

The class ShadowFormat represents shadow formatting for a shape.

The classes ChartFormat, Shape and TableBackground. give access to class ShadowFormat

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.

Methods

IncrementOffsetX - Changes the horizontal offset of the shadow by the specified number of points.

IncrementOffsetY - Changes the vertical offset of the shadow by the specified number of points.

Properties

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

ForeColor returns or sets a ColorFormat object that represents the foreground color for the fill, line, or shadow.

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

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

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

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

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

Style returns or sets the shadow style.

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).

Type represents the type of shadow.

Visible returns or sets the visibility of the specified object or the formatting applied to the specified object.

ColorFormat - Represents the color of a one-color object, the foreground or background color of an object with a gradient or patterned fill, or the pointer color. You can set colors to an explicit red-green-blue value (by using the RGB property) or to a color in the color scheme (by using the SchemeColor property).