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
sheetNamestringThe sheet's name, compared without regard to case.
writerTextWriterWhere the text goes. It is not closed.
optionsXlsxMarkdownOptionsHow to write, or null for the defaults.
Exceptions
- ArgumentNullException
sheetNameorwriteris 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.