Publisher) (Shape.Rotation 属性

返回或设置表示指定形状绕 z 轴旋转度数的 单精度 。 正值表示顺时针旋转;负值表示逆时针旋转。 读/写。

语法

表达式。旋转

expression 一个代表 Shape 对象的变量。

备注

若要设置三维形状绕 x 轴或 y 轴的旋转,请使用 ThreeDFormat 对象的 RotationX 属性或 RotationY 属性。

示例

以下示例将当前出版物的第一页上的所有形状的旋转与第一个形状的旋转匹配。 此示例假定活动出版物的第一页上至少有两个形状。

Sub SetShapeRotation() 
 Dim sngRotation As Single 
 Dim intCount As Integer 
 With ActiveDocument.Pages(1).Shapes 
 sngRotation = .Item(1).Rotation 
 For intCount = 1 To .Count 
 .Item(intCount).Rotation = sngRotation 
 Next intCount 
 End With 
End Sub

支持和反馈

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