OfficeIMO

API Reference

Class

ExcelFluentWorkbook

Namespace OfficeIMO.Excel.Fluent
Assembly OfficeIMO.Excel

Fluent API wrapper over ExcelDocument for quick workbook generation.

Inheritance

  • Object
  • ExcelFluentWorkbook

Constructors

public ExcelFluentWorkbook(ExcelDocument workbook) #

Creates a fluent workbook wrapper. Defaults execution policy to Sequential for predictability.

Parameters

workbook OfficeIMO.Excel.ExcelDocument requiredposition: 0

Methods

public ExcelDocument End() #
Returns: ExcelDocument

Finishes the fluent pipeline and returns the underlying ExcelDocument.

public ExcelFluentWorkbook Info(Action<InfoBuilder> action) #
Returns: ExcelFluentWorkbook

Sets workbook properties in a fluent style.

Parameters

action System.Action{OfficeIMO.Excel.Fluent.InfoBuilder} requiredposition: 0
Sheet 2 overloads
public ExcelFluentWorkbook Sheet(String name, Action<SheetBuilder> action) #
Returns: ExcelFluentWorkbook

Adds a new sheet and executes the builder action to populate it.

Parameters

name System.String requiredposition: 0
action System.Action{OfficeIMO.Excel.Fluent.SheetBuilder} requiredposition: 1
public ExcelFluentWorkbook Sheet(Action<SheetBuilder> action) #
Returns: ExcelFluentWorkbook

Adds a new sheet with default name and executes the builder action.

Parameters

action System.Action{OfficeIMO.Excel.Fluent.SheetBuilder} requiredposition: 0