[]
Represents options used when serializing a workbook or worksheet to JSON.
Use this class to control which content is included in the generated JSON, such as styles, formulas, sheets, shared formulas, binding sources, and automatically merged cells. These options apply when calling ToJson(SerializationOptions) or ToJson(SerializationOptions).
public class SerializationOptions
Public Class SerializationOptions
SerializationOptions options = new SerializationOptions();
options.IgnoreStyle = true;
options.IgnoreFormula = true;
string jsonText = workbook.ToJson(options);
| Name | Description |
|---|---|
| SerializationOptions() | Initializes a new instance of the SerializationOptions class. |
| Name | Description |
|---|---|
| ExportSharedFormula | Gets or sets whether shared formulas are exported when serializing a workbook or worksheet to JSON.
The default value is |
| IgnoreColumnRowInfoOutOfUsedRange | Gets or sets whether row and column information outside the used range is ignored when exporting to JSON.
When this option is |
| IgnoreFormula | Gets or sets whether formulas are ignored when serializing a workbook or worksheet to JSON.
If this property returns |
| IgnoreRangeOutOfRowColumnCount | Gets or sets whether to ignore data outside the RowCount and ColumnCount when exporting to JSON.
If this property is |
| IgnoreSheets | Gets or sets whether sheets are ignored when serializing a workbook or worksheet to JSON. If this property is |
| IgnoreStyle | Gets or sets whether styles are ignored when a workbook or worksheet is serialized to JSON.
If this property is |
| IncludeAutoMergedCells | Gets or sets whether automatically merged cells are included during JSON serialization. |
| IncludeBindingSource | Gets or sets whether binding sources are included when a workbook or worksheet is serialized to JSON.
If this property is |