Class XlsxTemplateOptions
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
How a workbook template is filled: its placeholders, and its blocks of rows that repeat for a list.
public sealed class XlsxTemplateOptions
- Inheritance
-
XlsxTemplateOptions
- Inherited Members
Constructors
- XlsxTemplateOptions()
Creates options with the defaults.
Fields
- DefaultMaxCells
The most cells a fill touches by default: ten million.
Properties
- EmptyList
Gets or sets what a block becomes when its list has no items. Default RemoveRows.
- MaxCells
Gets or sets the most cells a fill may touch: the cells its blocks write, and for each block the cells of the sheet it is on, which that block reads and whose rows it moves. Each block's share is counted before the block changes anything; past the limit the fill is refused with ResourceLimitExceededException, and the blocks above it stay filled. Default DefaultMaxCells.
- NestedLists
Gets or sets whether a block inside another block repeats for a list the outer block's item holds: a group and its lines. Default true. One level only: a block inside an inner block is refused. When false, markers inside a block are placeholders like any other.
- Placeholders
Gets or sets how placeholders are recognised and filled: the options ReplacePlaceholders(IReadOnlyDictionary<string, object?>, XlsxPlaceholderOptions?) takes, with the same defaults. Their prefix and suffix also make the block markers (
{{#Orders}},{{/Orders}}); Unresolved also says what happens to a block whose list the data does not supply.