返回或设置延伸图形绕 X 轴的旋转量,以度为单位。取值范围在 -90 至 90 之间。正值表示向上旋转;负值表示向下旋转。Single 类型,可读写。
expression.RotationX
expression 必需。该表达式返回一个 ThreeDFormat 对象。
若要设置延伸图形绕 Y 轴旋转的角度,可用 ThreeDFormat 对象的 RotationY 属性;若要设置延伸图形绕 Z 轴旋转的角度,可用 Shape 对象的 Rotation 属性。若要在改变延伸图形的延伸方向时不旋转延伸图形的正面,可用 SetExtrusionDirection 方法。
本示例在活动文档中插入三个相同的延伸椭圆,并分别将其绕 X 轴旋转的角度设置为:-30、0 和 30 度。
With ActiveDocument.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