Click or drag to resize

ChartLegendEntriesColl Add Method (Int32, XlsChartLegendEntry)

Adds a chart legend entry at the specified index.

Namespace: Spire.Xls.Core.Spreadsheet.Charts
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public XlsChartLegendEntry Add(
	int iIndex,
	XlsChartLegendEntry entry
)

Parameters

iIndex
Type: System Int32
The zero-based index at which the entry should be inserted.
entry
Type: Spire.Xls.Core.Spreadsheet.Charts XlsChartLegendEntry
The XlsChartLegendEntry to add.

Return Value

Type: XlsChartLegendEntry
The added XlsChartLegendEntry.
Exceptions
Exception Condition
ArgumentOutOfRangeException Thrown when the index is greater than or equal to the count of existing entries.
See Also