共用方式為


ShadowFormat 物件 (Excel)

代表圖案的陰影格式。

註解

使用 Shape 物件的 Shadow 屬性來傳回 ShadowFormat 物件。

範例

下列範例會在 myDocument 中新增帶有陰影的矩形。 半透明的藍色陰影在矩形右側偏移 5 點,在矩形上方偏移 3 點。

Set myDocument = Worksheets(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

方法

屬性

另請參閱

支援和意見反應

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