ComponentOne Excel for .NET
C1.Excel Assembly / C1.Excel Namespace / XLColumnCollection Class / Insert Method / Insert(Int32,XLColumn) Method
Position where the item will be inserted.
Item that will be inserted.

In This Topic
    Insert(Int32,XLColumn) Method
    In This Topic
    Inserts an XLColumn object at a specific position in the collection.
    Syntax
    'Declaration
     
    Public Overloads Function Insert( _
       ByVal index As System.Integer, _
       ByVal col As XLColumn _
    ) As XLColumn
    public XLColumn Insert( 
       System.int index,
       XLColumn col
    )

    Parameters

    index
    Position where the item will be inserted.
    col
    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