共用方式為


PowerPoint) (ThreeDFormat.RotationY 屬性

會傳回或設定繞 Y 軸 (x、y 及 z 座標軸) 之立體圖案的旋轉角度 (以度為單位)。 讀取/寫入。

語法

expressionRotationY

表達 代表 ThreeDFormat 物件的 變數。

傳回值

單一

註解

這可以是 -90 到 90 的值。 正值表示向左旋轉,負值表示向右旋轉。

若要設定立體化圖案繞 X 軸的旋轉角度,請使用ThreeDFormat物件的RotationX屬性。

若要設定立體圖案繞 z 軸的旋轉角度,請使用 Shape 物件的 Rotation 屬性。

若要變更的立體化延伸路徑方向但不旋轉其中的延伸部分正面,請使用 SetExtrusionDirection 方法。

範例

本範例會將三個相同的立體化橢圓形新增至 myDocument ,並將它們繞 Y 軸的旋轉分別設定為 - 30、0 和 30 度。

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes

    With .AddShape(msoShapeOval, 30, 30, 50, 25).ThreeD

        .Visible = True

        .RotationY = -30

    End With

    With .AddShape(msoShapeOval, 30, 70, 50, 25).ThreeD

        .Visible = True

        .RotationY = 0

    End With

    With .AddShape(msoShapeOval, 30, 110, 50, 25).ThreeD

        .Visible = True

        .RotationY = 30

    End With

End With

另請參閱

ThreeDFormat 物件

支援和意見反應

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