API Documentation > CorelDRAW > 2025-v26 > Window > IVGWindow
Window.Top property
Gets or sets the window's top value
Syntax:
Property Get Top() As Long
Property Let Top(ByVal Value As Long)
Remarks:
The Top property returns or specifies the top coordinate of a window. This value is measured in screen pixels.
Examples:
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