共用方式為


PowerPoint) (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

另請參閱

PowerPoint 物件模型參考資料

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應