傳回包含指定圖形之 3D 效果格式設定屬性的 ThreeDFormat 物件。 唯讀。
語法
運算式。ThreeD
expression 一個用於表示 Shape 物件的變數。
傳回值
ThreeDormat
範例
此範例會設定 3D 效果的深度、擠出顏色、擠出方向和照明方向,以套用至 myDocument 上的圖形一。
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes(1).ThreeD
.Visible = True
.Depth = 50
'RGB value for purple
.ExtrusionColor.RGB = RGB(255, 100, 255)
.SetExtrusionDirection msoExtrusionTop
.PresetLightingDirection = msoLightingLeft
End With
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。