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

Namespace:  C1.Silverlight.Excel
Assembly:  C1.Silverlight.Excel.5 (in C1.Silverlight.Excel.5.dll)

Syntax

C#
public XLNamedRange Insert(
	int index,
	XLNamedRange namedRange
)
Visual Basic
Public Function Insert ( _
	index As Integer, _
	namedRange As XLNamedRange _
) As XLNamedRange

Parameters

index
Type: System..::..Int32
The position where the object will be inserted.
namedRange
Type: C1.Silverlight.Excel..::..XLNamedRange
The named range to insert in the collection.

Return Value

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).

See Also