Shadow Property

Microsoft Word Visual Basic

True if the specified border is formatted as shadowed. Read/write Boolean.

expression.Shadow

expression    Required. An expression that returns a Borders object.

ShowShadow property as it applies to the Font object.

True if the specified font is formatted as shadowed. Can be True, False, or wdUndefined. Read/write Long.

expression.Shadow

expression    Required. An expression that returns a Font object.

ShowShadow property as it applies to the Shape and ShapeRange objects.

Returns a ShadowFormat object that represents the shadow formatting for the specified shape.

expression.Shadow

expression    Required. An expression that returns one of the above objects.

Example

ShowAs it applies to the Borders object.

This example demonstrates two different border styles in a new document.

Set myRange = Documents.Add.Content
With myRange
   .InsertAfter "Demonstration of border with shadow."
   .InsertParagraphAfter
   .InsertParagraphAfter
   .InsertAfter "Demonstration of border without shadow."
End With
With ActiveDocument
    .Paragraphs(1).Borders.Shadow = True
    .Paragraphs(3).Borders.Enable = True
End With
				

ShowAs it applies to the Font object.

This example applies shadow and bold formatting to the selection.

If Selection.Type = wdSelectionNormal Then
    With Selection.Font
        .Shadow = True
        .Bold = True
    End With
Else
    MsgBox "You need to select some text."
End If
				

ShowAs it applies to the Shape and ShapeRange objects.

This example adds an arrow with shadow formatting to the active document.

Set myShape = ActiveDocument.Shapes _
    .AddShape(Type:=msoShapeRightArrow, _
    Left:=90, Top:=79, Width:=64, Height:=43)
myShape.Shadow.Type = msoShadow5