Table of contents
TOC
折叠目录
展开目录

ThreeDFormat.RotationY 属性 (发布服务器)ThreeDFormat.RotationY Property (Publisher)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回或设置延伸形状绕 y 轴的旋转角度,以度为单位。可以是从-90 至 90 之间的一个值。正值表示向左; 旋转负值表示向右旋转。读/写单个Returns or sets the rotation of the extruded shape around the y-axis, in degrees. Can be a value from - 90 through 90. A positive value indicates rotation to the left; a negative value indicates rotation to the right. Read/write Single.

语法Syntax

表达式RotationYexpression. RotationY

_expression_A 表示ThreeDFormat对象的变量。_expression_A variable that represents a ThreeDFormat object.

返回值Return Value

SingleSingle

注解Remarks

若要设置延伸形状绕 x 轴的旋转角度,使用ThreeDFormat对象的超出RotationX属性的。若要设置延伸形状绕 z 轴的旋转角度,使用Shape对象的旋转属性。不旋转的延伸正面改变方向的延伸经过的路径,请使用SetExtrusionDirection方法。To set the rotation of the extruded shape around the x-axis, use the RotationX property of the ThreeDFormat object. To set the rotation of the extruded shape around the z-axis, use the Rotation property of the Shape object. To change the direction of the extrusion's sweep path without rotating the front face of the extrusion, use the SetExtrusionDirection method.

示例Example

本示例向活动文档添加三个相同的延伸的椭圆,并分别设置为-30 度、 0 和 30 度,绕 y 轴的旋转角度。This example adds three identical extruded ovals to the active document and sets their rotation around the y-axis to - 30, 0, and 30 degrees, respectively.

Sub SetRotationY() 
 With ActiveDocument.Pages(1).Shapes 
 With .AddShape(Type:=msoShapeOval, Left:=30, _ 
 Top:=120, Width:=50, Height:=25).ThreeD 
 .Visible = True 
 .RotationY = -30 
 End With 
 With .AddShape(Type:=msoShapeOval, Left:=90, _ 
 Top:=120, Width:=50, Height:=25).ThreeD 
 .Visible = True 
 .RotationY = 0 
 End With 
 With .AddShape(Type:=msoShapeOval, Left:=150, _ 
 Top:=120, Width:=50, Height:=25).ThreeD 
 .Visible = True 
 .RotationY = 30 
 End With 
 End With 
End Sub
© 2018 Microsoft