Workbook.RemoveStyle Method (Style, Boolean)

NanoXLSX

NanoXLSX

WorkbookRemoveStyle Method (Style, Boolean)

Removes the defined style from the style sheet of the workbook

Namespace:  NanoXLSX
Assembly:  NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)
Syntax
C#
public void RemoveStyle(
	Style style,
	bool onlyIfUnused
)

Parameters

style
Type: NanoXLSX.StyleStyle
Style to remove
onlyIfUnused
Type: SystemBoolean
If true, the style will only be removed if not used in any cell
Exceptions
ExceptionCondition
StyleExceptionThrows an StyleException if the style was not found in the style collection (could not be referenced)
See Also