Table of Contents

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

workbook XlsxWorkbook

The 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

workbook is null.

ArgumentException

The workbook has no worksheets, or two share a name.