Excel for WPF | ComponentOne
C1.WPF.Excel Namespace / XLSheetCollection Class / Insert Method / Insert(Int32,XLSheet) Method
Position where the item will be inserted.
XLSheet object to add to the collection.

In This Topic
    Insert(Int32,XLSheet) Method
    In This Topic
    Inserts an XLSheet object into the collection at the specified position.
    Syntax
    'Declaration
     
    
    Public Overloads Function Insert( _
       ByVal index As Integer, _
       ByVal sheet As XLSheet _
    ) As XLSheet
    public XLSheet Insert( 
       int index,
       XLSheet sheet
    )

    Parameters

    index
    Position where the item will be inserted.
    sheet
    XLSheet object to add to the collection.

    Return Value

    A reference to the object that was added to the collection (in this case, always the sheet parameter).
    See Also