[]
        
(Showing Draft Content)

C1.WPF.Excel.XLSheetCollection.Add

Add Method

Add()

Creates a new XLSheet and appends it to the collection.

Declaration
public XLSheet Add()
Public Function Add() As XLSheet
Returns
Type Description
XLSheet

A reference to the new XLSheet object.

Add(XLSheet)

Appends an existing XLSheet to the collection.

Declaration
public XLSheet Add(XLSheet sheet)
Public Function Add(sheet As XLSheet) As XLSheet
Parameters
Type Name Description
XLSheet sheet

The object to add to the collection.

Returns
Type Description
XLSheet

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

Add(string)

Creates a new XLSheet with a given name and appends it to the collection.

Declaration
public XLSheet Add(string name)
Public Function Add(name As String) As XLSheet
Parameters
Type Name Description
string name

The name of the new XLSheet.

Returns
Type Description
XLSheet

A reference to the new XLSheet object.