[]
        
(Showing Draft Content)

C1.Excel.XLSheetCollection.Insert

Insert Method

Insert(int)

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

Declaration
public XLSheet Insert(int index)
Parameters
Type Name Description
int index

Index where the new XLSheet will be added.

Returns
Type Description
XLSheet

A reference to the new XLSheet object.

Insert(int, XLSheet)

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

Declaration
public XLSheet Insert(int index, XLSheet sheet)
Parameters
Type Name Description
int index

Position where the item will be inserted.

XLSheet sheet

XLSheet object to add to the collection.

Returns
Type Description
XLSheet

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