Share via


Obscured Property [Publisher 2003 VBA Language Reference]

MsoTriState

MsoTriState can be one of these MsoTriState constants.
msoCTrue Not used with this property.
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 Return value indicating a combination of msoTrue and msoFalse for the specified shape range.
msoTriStateToggle Set value which toggles between msoTrue and msoFalse.
msoTrue The shadow of the specified shape appears filled in and is obscured by the shape.

expression.Obscured

expression Required. An expression that returns one of the objects in the Applies To list.

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 doesn't 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

Applies to | ShadowFormat Object