The Top property returns or sets the coordinate for the top edge of the selection or object. Returns a double.
Syntax
object.Top
object.Top( UnitType ) = Top
Parameter |
Type |
Description |
UnitType |
optional; unit type, default is mvCoordDisplayUnitPageUnits |
|
Top |
Double |
optional; in page units |
Example 1
This example demonstrates how to return the position of the top side of a selection on a page.
Debug.Print Selection.Top
Example 2
This example demonstrates how to position the left side of an object three units from the left edge of a page.
Shape.Top = 3
Used by: Selection collection, Shape object