Top Property [Selection, Shape]

Top returns or sets the coordinate in page units for the top edge of the selection or shape. Returns a double.

Syntax

object.Top

object. Top = Top

Parameter

Type

Description

Top

Double

required, use page units for top-level document objects, use map units for objects inside a base layer

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 top side of an object 3 page units from the top edge of a page.

Shape.Top = 3

Example 3

This script displays all the methods and properties in the Shape object.

Used by: Selection collection, Shape object