Method From
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
From(XlsxWorkbook)
Carries a generated workbook into the model that opens one, so that it can be read back, searched and edited as an opened workbook is.
public static XlsxDocument From(XlsxWorkbook workbook)
Parameters
workbookXlsxWorkbookThe workbook to carry over. It is read, not kept: changing it afterwards changes nothing here.
Returns
- XlsxDocument
The workbook, holding exactly the package ToArray(XlsxWorkbook, XlsxWriteSettings?) writes for
workbook.
Exceptions
- ArgumentNullException
workbookis null.- ArgumentException
The workbook has no worksheets, or two share a name.