Represents a custom view in Microsoft Excel.

Inheritance

object

Gets or sets the name of the custom view.

public string Name { get; set; }

Gets the value indicating whether hidden row and column settings are saved with the custom view.

public bool SaveHiddenRowsAndColumns { get; }

Gets the value indicating whether print options are saved with the custom view.

public bool SavePrintOptions { get; }

Gets the window options for the workbook associated with the custom view.

public CustomViewWindowOptions WindowOptions { get; }

Applies all options from the custom view to the associated workbook and its worksheets.

public void Apply()

Returns any

Gets the display options associated with the specified worksheet.

public CustomViewDisplayOptions GetDisplayOptions(Worksheet worksheet, bool createIfNull = true)

Parameters

  • worksheet: Worksheet
  • createIfNull: bool

Returns any

Gets the hidden columns associated with the specified worksheet.

public HiddenColumnCollection GetHiddenColumns(Worksheet worksheet, bool createIfNull = true)

Parameters

  • worksheet: Worksheet
  • createIfNull: bool

Returns any

Gets the hidden rows associated with the specified worksheet.

public HiddenRowCollection GetHiddenRows(Worksheet worksheet, bool createIfNull = true)

Parameters

  • worksheet: Worksheet
  • createIfNull: bool

Returns any

Gets the print options associated with the specified worksheet.

public PrintOptions GetPrintOptions(Worksheet worksheet, bool createIfNull = true)

Parameters

  • worksheet: Worksheet
  • createIfNull: bool

Returns any

GetSheetDisplayOptions(Sheet, bool)

Section titled "GetSheetDisplayOptions(Sheet, bool)"

Gets the display options associated with the specified sheet.

public DisplayOptionsBase GetSheetDisplayOptions(Sheet sheet, bool createIfNull = true)

Parameters

  • sheet: Sheet
  • createIfNull: bool

Returns any

Gets the print options associated with the specified sheet.

public PrintOptionsBase GetSheetPrintOptions(Sheet sheet, bool createIfNull = true)

Parameters

  • sheet: Sheet
  • createIfNull: bool

Returns any