Upravit

Sdílet prostřednictvím


Shape.IncrementTop method (Word)

Moves the specified shape vertically by the specified number of points.

Syntax

expression. IncrementTop( _Increment_ )

expression Required. A variable that represents a Shape object.

Parameters

Name Required/Optional Data type Description
Increment Required Single Specifies how far the shape object is to be moved vertically, in points. A positive value moves the shape down; a negative value moves it up.

Example

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 = ActiveDocument 
With myDocument.Shapes(1).Duplicate 
 .Fill.PresetTextured msoTextureGranite 
 .IncrementLeft 70 
 .IncrementTop -50 
 .IncrementRotation 30 
End With

See also

Shape Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.