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

ShapeRange.IncrementTop 方法 (PowerPoint)ShapeRange.IncrementTop Method (PowerPoint)

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

以指定磅数垂直移动指定的形状范围。Moves the specified shape range vertically by the specified number of points.

语法Syntax

表达式IncrementTop增量expression. IncrementTop( Increment )

表达式_一个表示一个ShapeRange对象的变量。_expression A variable that represents a ShapeRange object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
增量Increment必需Required一个Single以磅为单位指定形状范围的垂直移动距离。正值表示将形状范围向下移动,负值表示将形状范围向上移动。Specifies how far the shape range is to be moved vertically, in points. A positive value moves the shape range down; a negative value moves it up.

示例Example

本示例复制第一个形状上myDocument设置该副本的填充,向上,移向右和 50 磅的 70 磅,旋转顺时针旋转 30 度。This example duplicates shape one on myDocument, sets the fill for the duplicate, moves it 70 points to the right and 50 points up, and rotates it 30 degrees clockwise.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes(1).Duplicate

    .Fill.PresetTextured msoTextureGranite

    .IncrementLeft 70

    .IncrementTop -50

    .IncrementRotation 30

End With

另请参阅See also

概念Concepts

绘图对象ShapeRange Object

© 2018 Microsoft