语法
表达式.Rotation
表达式 一个代表 ShapeRange 对象的变量。
返回值Single
说明
如果要设置三维形状绕 X 轴或 Y 轴的旋转量,请用 ThreeDFormat 对象的 RotationX 属性或 RotationY 属性。
示例
以下示例将 myDocument 中所有形状的旋转量设置为与形状 1 一致。
myDocument
let myDocument = ActivePresentation.Slides.Item(1) let myShape = myDocument.Shapes let sh1Rotation = myShape.Item(1).Rotation for(let i = 1; i <= myShape.Count; i++){ myShape.Item(i).Rotation = sh1Rotation }