Removing style from workbook


#1

Hi,

How do I remove a style from the workbook?

Thanks,
Taras


#2

@TarasTielkes,

Thanks for your query.

I am afraid there is no such API to remove a specific style in the workbook.We only provide Workbook.RemoveUnusedStyles method to remove any unnecessary and unused styles in the workbook. Please note, if the style is used by some objects in the workbook, it cannot rather should not be removed in any case. If a style is not used by any objects anymore, you may use the above mentioned API for the purpose.