Class XlsxJsonOptions
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
How a sheet is written as JSON (ToJson(Stream, XlsxJsonOptions?)).
public sealed class XlsxJsonOptions
- Inheritance
-
XlsxJsonOptions
- Inherited Members
Constructors
- XlsxJsonOptions()
Creates options with the defaults.
Properties
- FirstRowIsHeader
Gets or sets a value indicating whether the first row of the range names the columns. Default true: the result is an array of objects, one for each row below the first, with the first row's texts as the property names (a blank one is
Column3, a repeated one gets_2). False: an array of arrays, one for each row.
- Indented
Gets or sets a value indicating whether each row is put on its own line. Default false.
- MaxCells
Gets or sets the most cells the range may cover, or null for no limit. Default DefaultMaxCells.
- 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 Typed: a number as a JSON number, a boolean as
trueorfalse, a date as an ISO 8601 string, an error as its text, an empty cell asnull. With DisplayedText every cell is the string Excel shows.