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
)
 
Public Function Add ( 
	iIndex As Integer,
	entry As XlsChartLegendEntry
) As XlsChartLegendEntry
 
public:
XlsChartLegendEntry^ Add(
	int iIndex, 
	XlsChartLegendEntry^ entry
)
 
member Add : 
iIndex : int * 
entry : XlsChartLegendEntry -> XlsChartLegendEntry 
 
 
 
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