Class XlsxCsvOptions
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
How a sheet is written as delimited text (ToCsv(TextWriter, XlsxCsvOptions?)).
public sealed class XlsxCsvOptions
- Inheritance
-
XlsxCsvOptions
- Inherited Members
Remarks
The defaults give what Excel's own "CSV UTF-8" save gives, measured: the sheet's used range, every row as wide as the range, each cell as the text it shows, a field quoted only when it holds the delimiter, a quote or a line break, and a carriage return and a line feed after every row.
Constructors
- XlsxCsvOptions()
Creates options with the defaults.
Fields
- DefaultMaxCells
The default of MaxCells: ten million cells.
Properties
- ByteOrderMark
Gets or sets a value indicating whether the bytes begin with the UTF-8 byte order mark, as Excel's "CSV UTF-8" does. Default true. Only for ToCsv(Stream, XlsxCsvOptions?): a TextWriter has its own encoding.
- Delimiter
Gets or sets what separates two fields. Default a comma. Not a quote or a line break.
- GuardFormulas
Gets or sets a value indicating whether a field that a spreadsheet would read as a formula is defused. Default false.
- MaxCells
Gets or sets the most cells the range may cover, or null for no limit. Default DefaultMaxCells. The range is the file's to state: two cells a million rows apart are a million rows of output.
- NewLine
Gets or sets what ends a row:
"\r\n"(the default, as Excel writes),"\n"or"\r".
- Range
Gets or sets the range to write, or null (the default) for the smallest range that holds every cell the sheet stores.
- ValuesAs
Gets or sets what a cell is written as. Default DisplayedText: the text Excel shows. With Typed a number is written plainly (
1234.5, whatever its format), a date as ISO 8601 and a boolean asTRUEorFALSE.