Class ShadowFormat (Word VBA)

The class ShadowFormat represents shadow formatting for a shape.


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

Dim sft as ShadowFormat
Set sft = Selection.Font.TextShadow

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


Blur returns or sets a Single that represents the blur level for a shadow format.

Selection.Font.TextShadow.Blur =

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

Dim cftForeColor As ColorFormat
Set cftForeColor = Selection.Font.TextShadow.ForeColor

Obscured msoTrue if the shadow of the specified shape appears filled in and is obscured by the shape, even if the shape has no fill. MsoFalse if the shadow has no fill and the outline of the shadow is visible through the shape if the shape has no fill.

Selection.Font.TextShadow.Obscured =

OffsetX returns or sets the horizontal offset (in points) of the shadow from the specified shape. A positive value offsets the shadow to the right of the shape; a negative value offsets it to the left.

Selection.Font.TextShadow.OffsetX =

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

Selection.Font.TextShadow.OffsetY =

Parent returns an object that represents the parent object of the specified ShadowFormat object.

Dim objParent As Object
Set objParent = Selection.Font.TextShadow.Parent

RotateWithShape returns or sets an MsoTriState that represents whether to rotate the shadow when rotating the shape.

Selection.Font.TextShadow.RotateWithShape =

Size returns or sets a Single that represents the width of the shadow.

Selection.Font.TextShadow.Size =

Style returns or sets a MsoShadowType that represents the type of shadow formatting to apply to a shape.

Selection.Font.TextShadow.Style =

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

Selection.Font.TextShadow.Transparency =

Type returns or sets the shape shadow type.

Selection.Font.TextShadow.Type =

Visible true if the specified object, or the formatting applied to it, is visible.

Selection.Font.TextShadow.Visible =