Class
ReaderTableExport
OfficeIMO.Reader
Deterministic text exporters for ReaderTable instances.
Inheritance
- object
- ReaderTableExport
Methods
ToCsv 2 overloads
public static string ToCsv(ReaderTable table) #Serializes a reader table as RFC 4180-style CSV with CRLF row separators.
Parameters
- table OfficeIMO.Reader.ReaderTable
- Table to serialize.
Returns
stringpublic static string ToCsv(ReaderTable table, CancellationToken cancellationToken) #Serializes a reader table as CSV with cancellation.
Parameters
- table OfficeIMO.Reader.ReaderTable
- Table to serialize.
- cancellationToken System.Threading.CancellationToken
- Cancellation token checked while scanning and writing rows.
Returns
stringToJson 2 overloads
public static string ToJson(ReaderTable table, bool indented = false) #Serializes a reader table as deterministic JSON with normalized row width.
Parameters
- table OfficeIMO.Reader.ReaderTable
- Table to serialize.
- indented bool = false
- When true, writes indented JSON for diagnostics and fixtures.
Returns
stringpublic static string ToJson(ReaderTable table, bool indented, CancellationToken cancellationToken) #Serializes a reader table as deterministic JSON with cancellation.
Parameters
- table OfficeIMO.Reader.ReaderTable
- Table to serialize.
- indented bool
- Cancellation token checked while scanning and writing rows.
- cancellationToken System.Threading.CancellationToken
- When true, writes indented JSON.
Returns
stringToMarkdownTable 2 overloads
public static string ToMarkdownTable(ReaderTable table) #Serializes a reader table as a GitHub-style Markdown table.
Parameters
- table OfficeIMO.Reader.ReaderTable
- Table to serialize.
Returns
stringpublic static string ToMarkdownTable(ReaderTable table, CancellationToken cancellationToken) #Serializes a reader table as a GitHub-style Markdown table with cancellation.
Parameters
- table OfficeIMO.Reader.ReaderTable
- Table to serialize.
- cancellationToken System.Threading.CancellationToken
- Cancellation token checked while writing rows.
Returns
string