Property Visibility
Visibility
Gets or sets whether the sheet is shown.
public XlsxSheetVisibility Visibility { get; set; }
Property Value
Remarks
A workbook has to show at least one sheet: Excel refuses one that hides them all. When the sheet Excel would open the workbook on is hidden, the saved workbook opens on its first visible sheet instead; otherwise Excel shows the hidden sheet regardless.
Exceptions
- InvalidOperationException
Setting it would leave the workbook with no visible sheet.