Click or drag to resize
NanoXLSX

Workbook.RemoveStyle(String, Boolean) Method

Note: This API is now obsolete.

Removes the defined style from the style sheet of the workbook. This method is deprecated since it has no direct impact on the generated file.

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.2+7f12a949130e0be1e987e553d2d08c083176cdca
Syntax
C#
[ObsoleteAttribute("This method has no direct impact on the generated file and is deprecated.")]
public void RemoveStyle(
	string styleName,
	bool onlyIfUnused
)

Parameters

styleName  String
Name of the style to be removed
onlyIfUnused  Boolean
If true, the style will only be removed if not used in any cell
Remarks
Note: This method is available due to compatibility reasons. Added styles are actually not removed by it since unused styles are disposed automatically
See Also