Shape.GetTop Method
Publisher Developer Reference |
Returns the distance of the shape’s or shape range's top edge from the top edge of the leftmost page in the current view as a Single in the specified units.
Syntax
expression.GetTop(Unit)
expression A variable that represents a Shape object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Unit | Required | PbUnitType | The units in which to return the distance. |
Return Value
Single
Remarks
The Unit parameter can be one of the PbUnitType constants declared in the Microsoft Office Publisher type library.
Use the GetLeft method to return the distance of a shape's or shape range's left edge from the left edge of the leftmost page in the current view.
Example
The following example displays the distances from the left and top edges of the leftmost page to the left and top edges of shape range consisting of all the shapes on the first page. The distances are expressed in inches (to the nearest hundredth).
Visual Basic for Applications |
---|
|
See Also
- Shape Object
- Shape Object Members