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

Parameters

index
Type: System..::..Int32
Position where the item will be inserted.
col
Type: C1.Silverlight.Excel..::..XLColumn
Item that will be inserted.

Return Value

A reference to the item that was added to the collection.

Remarks

The maximum number of XLColumn objects in an XLSheet is 256. This is a limitation imposed by Excel 2003 and below.

For Excel 2007 and above, the maximum number of XLColumn objects in an XLSheet is 18,278.

See Also