[]
Represents a custom workbook view.
An ICustomView records the workbook view state captured when the custom view was created. The Name property identifies the custom view. RowColSettings indicates whether hidden rows and columns and filter information are included, and PrintSettings indicates whether print settings are included. Custom views can be created from CustomViews, applied with Show(), and removed with Delete().
public interface ICustomView
Public Interface ICustomView
ICustomView customView = workbook.CustomViews.Add("ReviewView", true, true);
string name = customView.Name;
customView.Show();
| Name | Description |
|---|---|
| Name | Gets the name of the custom view. |
| PrintSettings | Gets a value indicating whether print settings are included in this custom view. |
| RowColSettings | Gets whether the custom view includes settings for hidden rows and columns, including filter information. |
| Name | Description |
|---|---|
| Delete() | Deletes this custom view from its parent ICustomViews collection. After this method is called, the custom view is removed from the workbook's custom view collection. |
| Show() | Applies this custom view to all worksheets in the workbook. Use this method to switch the workbook to the state stored in this custom view, including the view settings captured when the custom view was created. |