ThreeDFormat.RotationY 属性 (PowerPoint)

返回或设置延伸形状绕 Y 轴的旋转角度(以度为单位)。 读/写。

语法

expressionRotationY

表达 一个代表 ThreeDFormat 对象的变量。

返回值

单精度

备注

取值范围在 -90 到 90 之间。 正值表示向左旋转;负值表示向右旋转。

若要设置围绕 x 轴延伸的形状的旋转,请使用 ThreeDFormat 对象的 RotationX 属性。

若要设置延伸形状绕 z 轴的旋转角度,使用 Shape 对象的 旋转 属性。

不旋转的延伸正面改变方向的延伸经过的路径,请使用 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 支持和反馈,获取有关如何接收支持和提供反馈的指南。