[]
        
(Showing Draft Content)

C1.Excel.XLNamedRangeCollection.Insert

Insert Method

Insert(int, XLNamedRange)

Inserts an XLNamedRange object at a specific position in the collection.

Declaration
public XLNamedRange Insert(int index, XLNamedRange namedRange)
Parameters
Type Name Description
int index

The position where the object will be inserted.

XLNamedRange namedRange

The named range to insert in the collection.

Returns
Type Description
XLNamedRange

A reference to the object if it was successfully added to the collection, or null if the object could not be added (usually because it overlaps another cell range already in the collection).