[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.IWorkbooks.Add

Add Method

Add(string)

Creates a new workbook.

Declaration
IWorkbook Add(string name = null)
Function Add(Optional name As String = Nothing) As IWorkbook
Parameters
Type Name Description
string name

The name of workbook.

Returns
Type Description
IWorkbook

A IWorkbook value represents a new created IWorkbook instance.

Remarks

The workbook name must be unique in the workbook set.

Add(IWorkbook)

Adds an existed workbook into the workbook set.

Declaration
bool Add(IWorkbook workbook)
Function Add(workbook As IWorkbook) As Boolean
Parameters
Type Name Description
IWorkbook workbook
Returns
Type Description
bool

true if the workbook is added into current workbook set; otherwise, false.

Remarks

The workbook must not belong to any other workbook set and its name must be unique.