Publisher) (Shape.ThreeD 屬性

會傳回 ThreeDFormat 物件。

語法

運算式。ThreeD

expression 一個用於表示 Shape 物件的變數。

註解

使用 ThreeD 屬性會傳回 ThreeDFormat 物件,其屬性可用來格式化指定圖形的 3D 外觀。

範例

此範例會設定套用至使用中出版物中圖形 1 的 3D 效果的深度、擠出顏色、擠出方向和光線方向。

Dim tdfTemp As ThreeDFormat 
 
Set tdfTemp = _ 
 ActiveDocument.Pages(1).Shapes(1).ThreeD 
 
With tdfTemp 
 .Visible = True 
 .Depth = 50 
 .ExtrusionColor.RGB = RGB(255, 100, 255) 
 .SetExtrusionDirection _ 
 PresetExtrusionDirection:=msoExtrusionTop 
 .PresetLightingDirection = msoLightingLeft 
End With 

支援和意見反應

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