Word) (ThreeDFormat.RotationY 属性

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

语法

expressionRotationY

表达 返回“ThreeDFormat”对象的表达式。

备注

超出 RotationY 属性可以是 - 90 至 90 之间的值。 正值表示向左; 旋转负值表示向右旋转。

若要设置延伸形状绕 x 轴的旋转角度,使用 ThreeDFormat 对象的超出 RotationX 属性的。 若要设置延伸形状绕 z 轴的旋转角度,使用 Shape 对象的 旋转 属性。 不旋转的延伸正面改变方向的延伸经过的路径,请使用 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

另请参阅

ThreeDFormat 对象

支持和反馈

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