 | 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.7+3223c8b99fcd3402b4ae016daa480abac16f8a9f
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