[]
        
(Showing Draft Content)

C1.Excel.XLChartCollection.Insert

Insert Method

Insert(int)

Creates a new XLChart and inserts it at a specific position in the collection.

Declaration
public XLChart Insert(int index)
Public Function Insert(index As Integer) As XLChart
Parameters
Type Name Description
int index

Index where the new XLChart will be added.

Returns
Type Description
XLChart

A reference to the new XLChart object.

Insert(int, XLChart)

Inserts an XLChart object into the collection at the specified position.

Declaration
public XLChart Insert(int index, XLChart chart)
Public Function Insert(index As Integer, chart As XLChart) As XLChart
Parameters
Type Name Description
int index

Position where the item will be inserted.

XLChart chart

XLChart object to add to the collection.

Returns
Type Description
XLChart

A reference to the object that was added to the collection (in this case, always the chart parameter).