 | 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.5+4f4b44a718a20dda8ca2c0c4d00bd7eee7c80f5d
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