Share via


ProtectedViewWindow.Top Property

Gets or sets a value that represents the distance, in points, from the top edge of the specified Protected View window to the top edge of the usable area.

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

Syntax

'Declaration
Property Top As Double
    Get
    Set
'Usage
Dim instance As ProtectedViewWindow
Dim value As Double

value = instance.Top

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

Property Value

Type: System.Double
The distance, in points, from the top edge of the specified Protected View window to the top edge of the usable area.

Remarks

Read/write.

You cannot set this property for a maximized Protected View window. Use the WindowState property to return or set the state of the window.

See Also

Reference

ProtectedViewWindow Interface

ProtectedViewWindow Members

Microsoft.Office.Interop.Excel Namespace