Table of Contents

Method ToMarkdown

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

ToMarkdown(string, TextWriter, XlsxMarkdownOptions?)

Writes one sheet as a Markdown table. See ToMarkdown(TextWriter, XlsxMarkdownOptions?).

public void ToMarkdown(string sheetName, TextWriter writer, XlsxMarkdownOptions? options = null)

Parameters

sheetName string

The sheet's name, compared without regard to case.

writer TextWriter

Where the text goes. It is not closed.

options XlsxMarkdownOptions

How to write, or null for the defaults.

Exceptions

ArgumentNullException

sheetName or writer is null.

ArgumentException

The workbook has no sheet of that name.

InvalidOperationException

The sheet is not a worksheet.

ResourceLimitExceededException

The range covers more cells than MaxCells.

InvalidDocumentException

The sheet's part is malformed.