ThreeDFormat.RotationX 属性 (PowerPoint)

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

语法

expressionRotationX

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

返回值

单精度

备注

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

若要设置延伸形状绕 y 轴的旋转角度,使用 超出 RotationY 属性的 ThreeDFormat 对象。

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

不旋转的延伸正面改变方向的延伸经过的路径,请使用 SetExtrusionDirection 方法。

示例

本示例向 myDocument 添加三个相同的延伸椭圆,并分别将其围绕 x 轴的旋转设置为 - 30、0 和 30 度。

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes

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

        .Visible = True

        .RotationX = -30

    End With

    With .AddShape(msoShapeOval, 90, 60, 50, 25).ThreeD

        .Visible = True

        .RotationX = 0

    End With

    With .AddShape(msoShapeOval, 150, 60, 50, 25).ThreeD

        .Visible = True

        .RotationX = 30

    End With

End With

另请参阅

ThreeDFormat 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。