Window2.Top Property
Gets or sets the vertical position of the window represented by the WindowObject object, measured in points.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
Property Top As Integer
Get
Set
'Usage
Dim instance As Window2
Dim value As Integer
value = instance.Top
instance.Top = value
int Top { get; set; }
Property Value
Type: System.Int32
Remarks
The Top property will return an error if it is set on a window that is minimized or maximized.
Setting the Top property to a position that is off the screen will cause the entire window to be displayed on the screen.