ChartLegendEntriesColl
Add Method (Int32)
 | 
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
)
 
Public Function Add ( 
	iIndex As Integer
) As XlsChartLegendEntry
 
public:
XlsChartLegendEntry^ Add(
	int iIndex
)
 
member Add : 
iIndex : int -> XlsChartLegendEntry 
 
 
 
Parameters
- 
iIndex
 
- 
Type:
System
Int32
The zero-based index at which the legend entry should be added.
 
Return Value
Type:
XlsChartLegendEntry
The newly added or existing XlsChartLegendEntry at the specified index.
 
Exceptions
 
| 
Exception
 | 
Condition
 | 
| 
ArgumentOutOfRangeException
 | 
Thrown when the specified index is greater than or equal to the count of existing entries.
 | 
 
 
See Also