Class XlsxExportOptions
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
Options a range is read out of a sheet with.
public sealed class XlsxExportOptions
- Inheritance
-
XlsxExportOptions
- Inherited Members
Constructors
Fields
- DefaultMaxCells
The default of MaxCells: ten million cells.
Properties
- FirstRowIsHeader
Gets or sets whether the first row of the range holds the column headings. The default is true. When false, a table's columns are named
Column1,Column2, … and objects cannot be filled, since a property is found by its heading.
- Issues
Gets the cells the last export could not give as asked: an error value such as
#DIV/0!, or a value that is not of the column's or the property's type. Each is reported, none is guessed at. The list is cleared when an export starts.
- MaxCells
Gets or sets the most cells (rows times columns of the range) an export may cover, or null for no cap. On by default (DefaultMaxCells): a workbook somebody else made can store two cells a million rows apart, and an export of that range would build a million rows from a file of a few hundred bytes. A larger range is refused with a ResourceLimitExceededException.
- StopAtEmptyRow
Gets or sets whether the export ends at the first row of the range that holds no value. The default is false: an empty row is exported as a row of nothing.
- Strict
Gets or sets whether the first cell that cannot be given as asked ends the export with an InvalidDocumentException naming the cell. The default is false: the cell becomes nothing (null, DBNull, the property left as it was) and is listed in Issues.
- ValuesAs
Gets or sets what a cell is given as. The default is Typed. With DisplayedText an array and a new table hold the text Excel shows for each cell (every column of the table is string), and a column or a property of type string in a table or an object of your own gets that text; a column or a property of any other type is still given the value. An error value is then the text it shows (
#DIV/0!) and is not an issue.