Description |
---|
...
Wiki Markup |
---|
{description} {excerpt}Sets or returns the worksheet's viewing mode. |
...
Signature | |||
---|---|---|---|
C# | C# | {excerpt}
{signature:C#}
public SheetViewState ViewState{ get; set; }
| |
Signature | |||
{signature}{signature:vb.net | vb.net | }
Public Property ViewState() As SheetViewState
| |
Example | |||
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |
Exceptions |
---|
Exception | ArgumentException | ArgumentException |
---|
Attempting to set |
Remarks |
The viewing mode may be any of the values defined by Note that only Excel 2007 or later workbooks support null will set the mode to Normal .{code}
{example}
{exceptions}
{exception:ArgumentException}
Attempting to set {{ViewState}} to {{PageLayout}} in an Excel 2003 or earlier workbook will throw an {{ArgumentException}}.
{exception}
{remarks}
The viewing mode may be any of the values defined by [{{SheetViewState}}|Worksheet.SheetViewState]. By default, worksheets are in {{Normal}} mode.
Note that only Excel 2007 or later workbooks support {{PageLayout}} mode.
Setting this property to {{null}} will set the mode to {{Normal}}.
{remarks} |