Returns or sets the view showing in the window.
[Visual Basic] Property View As XlWindowView [C#] XlWindowView View { get; set; } [C++] __property XlWindowView get_View(); __property void set_View(XlWindowView ); [JScript] function get View() : XlWindowView function set View(XlWindowView);
Can be one of XlWindowView constants.
This example switches the view in the sheet one to page break preview.
[C#]
book.Worksheets[1].View = XlWindowView.xlPageBreakPreview;
[Visual Basic]
book.Worksheets(1).View = XlWindowView.xlPageBreakPreview
[C++]
book->Worksheets->Item[1]->View = XlWindowView::xlPageBreakPreview;
IWorksheet Interface | NativeExcel Namespace | XlWindowView Enumeration