返回或设置图形延伸部分绕 Y 轴的旋转量,以度为单位。可取从 -90 至 90 之间的值。正数值表示向左旋转,负值表示向右旋转。Single 类型,可读写。
expression.RotationY
expression 必需。该表达式返回一个 ThreeDFormat 对象。
若要设置图形延伸部分绕 X 轴的旋转量,可用 ThreeDFormat 对象的 RotationX 属性。若要设置图形延伸部分绕 Z 轴的旋转量,请用 Shape 对象的 Rotation 属性。若要更改延伸方向而又不想旋转图形正面,请用 SetExtrusionDirection 方法。
本示例将三个相同的延伸椭圆添加至 myDocument
中,然后将其分别设置为绕 Y 轴旋转 -30、0 和 30 度。
Set myDocument = ActiveDocument
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