Table of Contents

Method SetLegend

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

SetLegend(XlsxLegendPosition?)

Gives the chart a legend at a position, or none.

public void SetLegend(XlsxLegendPosition? position)

Parameters

position XlsxLegendPosition?

Where the legend is; null for no legend.

Exceptions

InvalidOperationException

The chart is a 2016 chart, which is not changed here, or was removed.