This article explains how to delete chart legend using XlsIO.
What is the use of chart legend?
Most of the charts use legend to help readers understand the charted data. Whenever a chart is created in Excel, legend for the chart is automatically generated at the same time. A chart will not have a legend if it is manually removed, but can be retrieved.
Code snippet to delete chart legend
Delete chart legend using Delete() method.
Applicable properties for chart legend
NOTE: Applying properties apart from the mentioned list might throw exception or the changes will not be reflected in the output document because those properties are not related to chart legend.
The following C#/ VB.NET complete code snippet shows how to delete chart legend using XlsIO.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|