Table of contents
TOC
Collapse the table of content
Expand the table of content

ShadowFormat.Obscured Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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

ConstantDescription
msoFalseThe shadow of the specified shape does not appear filled in and is not obscured by the shape if the shape has no fill.
msoTriStateMixedReturn value indicating a combination of msoTrue and msoFalse for the specified shape range.
msoTriStateToggleSet value that switches between msoTrue and msoFalse.
msoTrueThe shadow of the specified shape does not appear filled in and is not obscured by the shape 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
© 2018 Microsoft