 | WorkbookRemoveStyle(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: NanoXLSXAssembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntax[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
RemarksNote: This method is available due to compatibility reasons. Added styles are actually not removed by it since unused styles are disposed automatically
See Also