Previous Document Next Document

Object Model Reference : Classes : W : Window : Properties : Window.Top


Window.Top

Property Top As Long

Description

Member of Window

The Top property returns or specifies the top coordinate of a window. This value is measured in screen pixels.

VBA example

The following VBA example displays the current top coordinate, sets it to half of its original value, and displays the new value.

Sub Test()
 MsgBox "The current top coordinate is: " & ActiveWindow.Top
 ActiveWindow.Top = ActiveWindow.Top / 2
 MsgBox "The new top coordinate is: " & ActiveWindow.Top
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.