|

楼主 |
发表于 2016-1-25 13:43
|
显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
RotationX属性
返回或设置延伸形状绕X 轴的旋转,以“度”为单位。可为 - 90 到 90 之间的值。正值表示向上旋转,负值表示向下旋转。可读写。Single 类型。
说明
若要设置延伸形状绕 Y 轴的旋转,请使用 ThreeDFormat对象的RotationY属性。若要设置延伸形状绕 Z 轴的旋转,请使用Shape对象的Rotation属性。若要更改延伸路径的方向而不旋转延伸的正面,请使用SetExtrusionDirection方法。
VBA示例
本示例向myDocument 中添加三个相同的延伸椭圆,并设置分别绕 x 轴旋转 - 30、0 和 30 度。
Set myDocument = ActivePresentation.Slides(1)
With myDocument.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
RotationY属性
返回或设置延伸形状绕Y 轴的旋转,以“度”为单位。可为 - 90 到 90 之间的值。正值表示向左旋转,负值表示向右旋转。可读写。Single 类型。
说明
若要设置延伸形状绕 x 轴的旋转,请使用 ThreeDFormat对象的RotationX属性。若要设置延伸形状绕 z 轴的旋转,请使用Shape对象的Rotation属性。若要改变延伸经过路径的方向而不旋转延伸的正面,请使用SetExtrusionDirection方法。
VBA示例
本示例向myDocument 中添加三个相同的延伸椭圆,并设置分别绕 x 轴旋转 - 30、0 和 30 度。
Set myDocument = ActivePresentation.Slides(1)
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
Rows属性
返回一个Rows集合,代表表格中的所有行。只读。
有关返回集合中单个元素的详细信息,请参阅返回集合中的对象。
VBA示例
本示例删除表格(活动演示文稿中第二张幻灯片上的第五个形状)中的第三行。
ActivePresentation.Slides(2).Shapes(5).Table.Rows(3).Delete
本示例对表格单元格中第二行的下框线应用虚线样式。
ActiveWindow.Selection.ShapeRange.Table.Rows(2) _
.Cells.Borders(ppBorderBottom).DashStyle = msoLineDash
|
|