Top Property

The Top property returns or sets the coordinate, in page units, for the top edge of the selection or object. Returns a Double.

Syntax

object.Top

object.Top = Top

 

Parameter Type Description
Top Double required, use page units

 

Remarks

The starting point for a Y axis is the bottom of the axis. Therefore, the value returned by the Top property will be the coordinate of the bottom of the Y axis in page units. To return the top coordinate of the Y axis, add the Y axis height to the Top value or select the axis and use Selection.Top instead.

Example 1

This example demonstrates how to return the position of the top side of a selection.

Debug.Print Selection.Top

Example 2

This example demonstrates how to position the left side of an object three page units from the left edge of a page.

Shape.Top = 3

 

Used by: AutoAxis object, AutoPlot object, AutoSelection collection, AutoShape object