全部显示

RotationX 属性

       

返回或设置延伸形状绕 X 轴的旋转,以“度”为单位。可为 - 90 到 90 之间的值。正值表示向上旋转,负值表示向下旋转。可读写。Single 类型。

说明

若要设置延伸形状绕 Y 轴的旋转,请使用 ThreeDFormat 对象的 RotationY 属性。若要设置延伸形状绕 Z 轴的旋转,请使用 Shape 对象的 Rotation 属性。若要更改延伸路径的方向而不旋转延伸的正面,请使用 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