ShadowFormat 对象 (PowerPoint)

代表形状的阴影格式。

示例

使用 阴影 属性返回一个 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

另请参阅

PowerPoint 对象模型引用

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。