Inserts an XLCellRange 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 XLCellRange Insert(
	int index,
	XLCellRange cr
)
Visual Basic
Public Function Insert ( _
	index As Integer, _
	cr As XLCellRange _
) As XLCellRange

Parameters

index
Type: System..::..Int32
Position where the object will be inserted.
cr
Type: C1.Silverlight.Excel..::..XLCellRange
Object 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 to the collection (usually because it overlaps another cell range already in the collection).

See Also