Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ReaderTableExport

OfficeIMO.Reader

Namespace
OfficeIMO.Reader
Assembly
OfficeIMO.Reader.Core
Source revision
e163ccb36643 with working tree changes
Modifiers
static

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 required
Table to serialize.

Returns

string
public static string ToCsv(ReaderTable table, CancellationToken cancellationToken) #

Serializes a reader table as CSV with cancellation.

Parameters

table OfficeIMO.Reader.ReaderTable required
Table to serialize.
cancellationToken System.Threading.CancellationToken required
Cancellation token checked while scanning and writing rows.

Returns

string
ToJson 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 required
Table to serialize.
indented bool = false optional
When true, writes indented JSON for diagnostics and fixtures.

Returns

string
public static string ToJson(ReaderTable table, bool indented, CancellationToken cancellationToken) #

Serializes a reader table as deterministic JSON with cancellation.

Parameters

table OfficeIMO.Reader.ReaderTable required
Table to serialize.
indented bool required
Cancellation token checked while scanning and writing rows.
cancellationToken System.Threading.CancellationToken required
When true, writes indented JSON.

Returns

string
ToMarkdownTable 2 overloads
public static string ToMarkdownTable(ReaderTable table) #

Serializes a reader table as a GitHub-style Markdown table.

Parameters

table OfficeIMO.Reader.ReaderTable required
Table to serialize.

Returns

string
public static string ToMarkdownTable(ReaderTable table, CancellationToken cancellationToken) #

Serializes a reader table as a GitHub-style Markdown table with cancellation.

Parameters

table OfficeIMO.Reader.ReaderTable required
Table to serialize.
cancellationToken System.Threading.CancellationToken required
Cancellation token checked while writing rows.

Returns

string