Share via


ShadowFormat.Visible Property

PowerPoint Developer Reference

Returns or sets the visibility of the specified object or the formatting applied to the specified object. Read/write.

Syntax

expression.Visible

expression   A variable that represents a ShadowFormat object.

Return Value
MsoTriState

Remarks

The value of the Visible property can be one of these MsoTriState constants.

Constant Description
msoFalse The specified object or object formatting is not visible.
msoTrue The specified object or object formatting is visible.

Example

This example sets the horizontal and vertical offsets for the shadow of shape three on the first slide in the active presentation. 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 and makes it visible.

Visual Basic for Applications
  Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes(3).Shadow
    .Visible = msoTrue
    .OffsetX = 5
    .OffsetY = -3
End With

See Also