Skip to content

Latest commit

 

History

History
72 lines (39 loc) · 1.4 KB

PowerPoint.ShapeRange.Top.md

File metadata and controls

72 lines (39 loc) · 1.4 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ShapeRange.Top property (PowerPoint)
vbapp10.chm548037
vbapp10.chm548037
PowerPoint.ShapeRange.Top
448b4c64-6519-ce0d-fb2e-9dbc65462494
06/08/2017
medium

ShapeRange.Top property (PowerPoint)

Returns or sets a Single that represents the distance from the top edge of the topmost shape in the shape range to the top edge of the document. Read/write.

Syntax

expression.Top

expression A variable that represents a ShapeRange object.

Return value

Single

Example

This example arranges windows one and two horizontally; in other words, each window occupies half the available vertical space and all the available horizontal space in the application window's client area. For this example to work, there must be only two document windows open.

Windows.Arrange ppArrangeTiled

sngHeight = Windows(1).Height                     ' available height

sngWidth = Windows(1).Width + Windows(2).Width    ' available width

With Windows(1)

    .Width = sngWidth

    .Height = sngHeight / 2

    .Left = 0

End With

With Windows(2)

    .Width = sngWidth

    .Height = sngHeight / 2

    .Top = sngHeight / 2

    .Left = 0

End With

See also

ShapeRange Object

[!includeSupport and feedback]