Version

Add(String,Boolean,Boolean) Method

Adds a new custom view to the collection.
Syntax

Parameters

name
The name to give the newly created custom view.
savePrintOptions
True to save print options for each worksheet with the custom view; False otherwise.
saveHiddenRowsAndColumns
True to save information about hidden rows and columns for each worksheet with the custom view; False otherwise.

Return Value

The newly created CustomView instance.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionname is a null or empty.
System.ArgumentExceptionname is the name of another custom view in the collection (custom view names are compared case-insensitively).
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also