Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelTemplateOptions

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
c47203b3ce89 with working tree changes
Modifiers
sealed

Options used when applying workbook or worksheet template markers.

Inheritance

  • object
  • ExcelTemplateOptions

Usage

Explore 8 API references to this type

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

Returned or exposed by 1

Accepted by parameters 7

Constructors

public ExcelTemplateOptions() #

Methods

public ExcelTemplateOptions AddFormatter(string name, ExcelTemplateValueFormatter formatter) #

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

Parameters

name string required
formatter OfficeIMO.Excel.ExcelTemplateValueFormatter required

Properties

public IFormatProvider? FormatProvider { get; set; } #

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

public bool ThrowOnMissing { get; set; } #

Throws when a marker is not supplied by the values/model. Equivalent to ExcelTemplateMissingValueBehavior.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}}.