Version

View Property

Gets or sets the current view of the worksheet.
Syntax
'Declaration
 
Public Property View As WorksheetView
public WorksheetView View {get; set;}

Property Value

The current view of the worksheet.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentException The value assigned is not defined in the WorksheetView enumeration.
Remarks

The view determines the overall display of the worksheet in Microsoft Excel.

Note: The WorksheetView value of PageLayout is only supported in Excel 2007. If a worksheet with that View is viewed in earlier versions of Microsoft Excel, the view will default to Normal view.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also