[]
        
(Showing Draft Content)

C1.Excel.XLExternalBookCollection.Insert

Insert Method

Insert(int, string)

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

Declaration
public XLExternalBook Insert(int index, string fileName)
Parameters
Type Name Description
int index

Index where the new XLExternalBook will be added.

string fileName

The file name of the new XLExternalBook.

Returns
Type Description
XLExternalBook

A reference to the new XLExternalBook object.

Insert(int, XLExternalBook)

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

Declaration
public XLExternalBook Insert(int index, XLExternalBook exBook)
Parameters
Type Name Description
int index

Position where the item will be inserted.

XLExternalBook exBook

XLExternalBook object to add to the collection.

Returns
Type Description
XLExternalBook