Workbook Methods

NanoXLSX

NanoXLSX

Workbook Methods

The Workbook type exposes the following members.

Methods
  NameDescription
Public methodAddStyle
Adds a style to the style manager
Public methodAddStyleComponent
Adds a style component to a style
Public methodAddWorksheet(String)
Adding a new Worksheet. The new worksheet will be defined as current worksheet
Public methodAddWorksheet(Worksheet)
Adding a new Worksheet. The new worksheet will be defined as current worksheet
Public methodAddWorksheet(String, Boolean)
Adding a new Worksheet with a sanitizing option. The new worksheet will be defined as current worksheet
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Private methodInit
Init method called in the constructors
Public methodStatic memberLoad(Stream)
Loads a workbook from a stream
Public methodStatic memberLoad(String)
Loads a workbook from a file
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemoveStyle(String)
Removes the defined style from the style sheet of the workbook
Public methodRemoveStyle(Style)
Removes the passed style from the style sheet
Public methodRemoveStyle(String, Boolean)
Removes the defined style from the style sheet of the workbook
Public methodRemoveStyle(Style, Boolean)
Removes the defined style from the style sheet of the workbook
Public methodRemoveWorksheet
Removes the defined worksheet
Public methodResolveMergedCells
Method to resolve all merged cells in all worksheets. Only the value of the very first cell of the locked cells range will be visible. The other values are still present (set to EMPTY) but will not be stored in the worksheet.
Public methodSave
Saves the workbook
Public methodSaveAs
Saves the workbook with the defined name
Public methodSaveAsStream
Save the workbook to a writable stream
Public methodSetCurrentWorksheet
Sets the current worksheet
Public methodSetSelectedWorksheet(Int32)
Sets the selected worksheet in the output workbook
Public methodSetSelectedWorksheet(Worksheet)
Sets the selected worksheet in the output workbook
Public methodSetWorkbookProtection
Sets or removes the workbook protection. If protectWindows and protectStructure are both false, the workbook will not be protected
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also