ShadowFormat 对象

         
Shapes (Shape)
ShadowFormat
ColorFormat

代表形状的阴影格式。

使用 ShadowFormat 对象

使用 Shadow 属性返回单个 ShadowFormat 对象。以下示例向 myDocument 中添加带有阴影的矩形。半透明的蓝色阴影印在该矩形的右边 5 磅和上面 3 磅。

Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes.AddShape(msoShapeRectangle, _
        50, 50, 100, 200).Shadow
    .ForeColor.RGB = RGB(0, 0, 128)
    .OffsetX = 5
    .OffsetY = -3
    .Transparency = 0.5
    .Visible = True
End With