全部显示

RotationY 属性

       

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

说明

若要设置延伸形状绕 x 轴的旋转,请使用 ThreeDFormat 对象的 RotationX 属性。若要设置延伸形状绕 z 轴的旋转,请使用 Shape 对象的 Rotation 属性。若要改变延伸经过路径的方向而不旋转延伸的正面,请使用 SetExtrusionDirection 方法。

示例

本示例向 myDocument 中添加三个相同的延伸椭圆,并设置分别绕 x 轴旋转 - 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