API Reference

Class

ExcelTemplateOptions

Namespace OfficeIMO.Excel
Assembly OfficeIMO.Excel
Modifiers sealed

Options used when applying workbook or worksheet template markers.

Inheritance

  • Object
  • ExcelTemplateOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

Constructors

public ExcelTemplateOptions() #

Methods

public ExcelTemplateOptions AddFormatter(String name, ExcelTemplateValueFormatter formatter) #
Returns: ExcelTemplateOptions

Adds or replaces a named custom formatter and returns this options instance.

Parameters

name System.String requiredposition: 0
formatter OfficeIMO.Excel.ExcelTemplateValueFormatter requiredposition: 1

Properties

public IFormatProvider FormatProvider { get; set; } #

Format provider used by built-in aliases and custom formatters.

public Boolean ThrowOnMissing { get; set; } #

Throws when a marker is not supplied by the values/model. Equivalent to Throw.

public ExcelTemplateMissingValueBehavior MissingValueBehavior { get; set; } #

Behavior used when a marker is not supplied by the values/model.

public IDictionary<String, ExcelTemplateValueFormatter> Formatters { get; } #

Named custom formatters, keyed by marker format such as "upper" in {{Name:upper}}.