ShadowFormat.Obscured property (Publisher)

Returns or sets an MsoTriState value indicating whether the shadow of the specified shape appears filled in and is obscured by the shape. Read/write.

Syntax

expression.Obscured

expression A variable that represents a ShadowFormat object.

Return value

MsoTriState

Remarks

The Obscured property value can be one of the MsoTriState constants declared in the Microsoft Office type library and shown in the following table.

Constant Description
msoFalse The shadow of the specified shape does not appear filled in and is not obscured by the shape if the shape has no fill.
msoTriStateMixed A return value indicating a combination of msoTrue and msoFalse for the specified shape range.
msoTriStateToggle A set value that switches between msoTrue and msoFalse.
msoTrue The shadow of the specified shape appears filled in and is obscured by the shape even if the shape has no fill.

Example

This example sets the horizontal and vertical offsets of the shadow for shape three on page one of the active publication. The shadow is offset 5 points to the right of the shape and 3 points above it. If the shape does not already have a shadow, this example adds one to it. The shadow will be filled in and obscured by the shape, even if the shape has no fill.

With ActiveDocument.Pages(1).Shapes(3).Shadow 
 .Visible = True 
 .OffsetX = 5 
 .OffsetY = -3 
 .Obscured = msoTrue 
End With

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.