API Reference
TableBuilder
Builder for pipe tables.
Inheritance
- Object
- TableBuilder
Constructors
public TableBuilder() #Methods
public TableBuilder Align(params ColumnAlignment[] alignments) #TableBuilderSets column alignments for the table header/columns.
Parameters
- alignments OfficeIMO.Markdown.ColumnAlignment[]
public TableBuilder AlignAll(ColumnAlignment alignment) #TableBuilderSets a uniform alignment for all columns (applied to header + cells).
Parameters
- alignment OfficeIMO.Markdown.ColumnAlignment
public TableBuilder AlignByHeaders(ColumnAlignment alignment, params String[] headerNames) #TableBuilderAlign columns by matching header names (case-insensitive).
Parameters
- alignment OfficeIMO.Markdown.ColumnAlignment
- headerNames System.String[]
public TableBuilder AlignCenter(params Int32[] cols) #TableBuilderSet center alignment on specified 0-based column indexes. If none provided, all columns.
Parameters
- cols System.Int32[]
public TableBuilder AlignDatesCenter(Double threshold = 0.6) #TableBuilderGuess date-like columns and center-align them. Threshold is fraction of date-like values required (0..1).
Parameters
- threshold System.Double = 0.6
public TableBuilder AlignLeft(params Int32[] cols) #TableBuilderSet left alignment on specified 0-based column indexes. If none provided, all columns.
Parameters
- cols System.Int32[]
public TableBuilder AlignNone(params Int32[] cols) #TableBuilderRemove alignment (default) on specified 0-based column indexes. If none provided, all columns.
Parameters
- cols System.Int32[]
public TableBuilder AlignNumericRight(Double threshold = 0.8) #TableBuilderGuess numeric columns by sampling values and align them right. Threshold is fraction of numeric-like values required (0..1).
Parameters
- threshold System.Double = 0.8
public TableBuilder AlignRight(params Int32[] cols) #TableBuilderSet right alignment on specified 0-based column indexes. If none provided, all columns.
Parameters
- cols System.Int32[]
public TableBuilder Columns(Func<String, String> headerTransform) #TableBuilderConfigures default column options for subsequent FromAny calls.
Parameters
- configure System.Action{OfficeIMO.Markdown.TableFromOptions}
Columns(System.Func{System.String,System.String} headerTransform) #Sets a simple header transform used for generating header text (e.g., prettifying PascalCase).
Parameters
- headerTransform System.Func{System.String,System.String}
public TableBuilder FromAny(Object data) #TableBuilderPopulates the table from an arbitrary object. If data is - a sequence of scalars → one-column table with a row per value, - a sequence of objects → headers from public readable properties and rows per item, - a dictionary → two columns Key/Value, - a POCO → two columns Property/Value.
Parameters
- data System.Object
public TableBuilder FromAny(Object data, Action<TableFromOptions> configure) #TableBuilderPopulates the table from arbitrary data with options (include/exclude/order).
Parameters
- data System.Object
- options OfficeIMO.Markdown.TableFromOptions
FromAny(System.Object data, System.Action{OfficeIMO.Markdown.TableFromOptions} configure) #Populates the table from arbitrary data using an inline options configuration.
Parameters
- data System.Object
- configure System.Action{OfficeIMO.Markdown.TableFromOptions}
public TableBuilder FromObject<T>(T data, TableFromOptions options = null) #TableBuilderType Parameters
- T
Parameters
- data T
- options TableFromOptions = null
FromObject``1(``0 data, OfficeIMO.Markdown.TableFromOptions options) #Populates the table from a single object using public readable properties.
Parameters
- data ``0
- options OfficeIMO.Markdown.TableFromOptions
public TableBuilder FromSequence<T>(IEnumerable<T> items, params ValueTuple<String, Func<T, Object>>[] columns) #TableBuilderType Parameters
- T
Parameters
- items IEnumerable<T>
- columns ValueTuple<String, Func<T, Object>>[]
public TableBuilder FromSequenceAuto<T>(IEnumerable<T> items, TableFromOptions options = null) #TableBuilderType Parameters
- T
Parameters
- items IEnumerable<T>
- options TableFromOptions = null
FromSequenceAuto``1(System.Collections.Generic.IEnumerable{``0} items, OfficeIMO.Markdown.TableFromOptions options) #Populates the table from a sequence of objects using public readable properties.
Parameters
- items System.Collections.Generic.IEnumerable{``0}
- options OfficeIMO.Markdown.TableFromOptions
FromSequence``1(System.Collections.Generic.IEnumerable{``0} items, System.ValueTuple{System.String,System.Func{``0,System.Object}}[] columns) #Populates the table from a sequence using explicit column selectors.
Parameters
- items System.Collections.Generic.IEnumerable{``0}
- columns System.ValueTuple{System.String,System.Func{``0,System.Object}}[]
public TableBuilder Headers(params String[] headers) #TableBuilderSets the header row.
Parameters
- headers System.String[]
public TableBuilder Row(params String[] cells) #TableBuilderAdds a data row.
Parameters
- cells System.String[]
public TableBuilder Rows(IEnumerable<KeyValuePair<String, String>> rows) #TableBuilderAdds multiple rows.
Parameters
- rows System.Collections.Generic.IEnumerable{System.Collections.Generic.IReadOnlyList{System.String}}
Rows(System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,System.String}} rows) #Adds two-column rows from tuples.
Parameters
- rows System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,System.String}}
Rows(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}} rows) #Adds two-column rows from key/value pairs.
Parameters
- rows System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.String}}
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object