[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ICustomViews

ICustomViews Interface

A collection of custom workbook views.

This interface represents the collection returned by CustomViews. Each item in the collection is an ICustomView that stores a workbook custom view and can be retrieved by name, added to the workbook, or iterated in sequence.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface ICustomViews : IEnumerable<ICustomView>, IEnumerable
Public Interface ICustomViews
    Inherits IEnumerable(Of ICustomView), IEnumerable
Examples
worksheet.PageSetup.PrintArea = "$A$1:$C$10";
ICustomViews customViews = workbook.CustomViews;
customViews.Add("PrintView", true, false);
ICustomView customView = customViews["PrintView"];
customView.Show();

Properties

Name Description
Count

Returns the number of objects in the collection (read-only).

this[string]

Gets the custom workbook view using the name.

Methods

Name Description
Add(string, bool, bool)

Creates a custom view from the current workbook view state.

The custom view captures the current view state of all worksheets in the workbook. If a custom view with the same name already exists, the existing custom view is replaced. A custom view cannot be added while the workbook contains a table or a pivot table.