Share via


DocumentWindow.Top Property

Returns or sets a Single that represents the distance in points from the top edge of the document, application, and slide show window to the top edge of the application window's client area. Read/write.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property Top As Single
    Get
    Set
'Usage
Dim instance As DocumentWindow
Dim value As Single

value = instance.Top

instance.Top = value
float Top { get; set; }

Property Value

Type: System.Single
Single

Remarks

Setting this property to a very large positive or negative value may position the window completely off the desktop.

Examples

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

Reference

DocumentWindow Interface

DocumentWindow Members

Microsoft.Office.Interop.PowerPoint Namespace