API Reference
TableBuilder
Builder for pipe tables.
Inheritance
- Object
- TableBuilder
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method TableBuilder.Align
- Method TableBuilder.AlignAll
- Method TableBuilder.AlignByHeaders
- Method TableBuilder.AlignCenter
- Method TableBuilder.AlignDatesCenter
- Method TableBuilder.AlignLeft
- Method TableBuilder.AlignNone
- Method TableBuilder.AlignNumericRight
- Method TableBuilder.AlignRight
- Method TableBuilder.Columns
- Method TableBuilder.Columns
- Method TableBuilder.FromAny
- Method TableBuilder.FromAny
- Method TableBuilder.FromAny
- Method TableBuilder.FromObject``1
- Method TableBuilder.FromSequenceAuto``1
- Method TableBuilder.FromSequence``1
- Method TableBuilder.Headers
- Method TableBuilder.Row
- Method TableBuilder.Rows
- Method TableBuilder.Rows
- Method TableBuilder.Rows
Accepted by parameters
- Method MarkdownDoc.Table
- Method MarkdownDoc.TableAuto
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(Action<TableFromOptions> configure) #TableBuilderConfigures default column options for subsequent FromAny calls.
Parameters
- configure System.Action{OfficeIMO.Markdown.TableFromOptions}
public TableBuilder Columns(Func<String, String> headerTransform) #TableBuilderSets 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, TableFromOptions options) #TableBuilderPopulates the table from arbitrary data with options (include/exclude/order).
Parameters
- data System.Object
- options OfficeIMO.Markdown.TableFromOptions
public TableBuilder FromAny(Object data, Action<TableFromOptions> configure) #TableBuilderPopulates 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) #TableBuilderPopulates the table from a single object using public readable properties.
Type Parameters
- T
Parameters
- data ``0
- options OfficeIMO.Markdown.TableFromOptions = null
public TableBuilder FromSequenceAuto<T>(IEnumerable<T> items, TableFromOptions options = null) #TableBuilderPopulates the table from a sequence of objects using public readable properties.
Type Parameters
- T
Parameters
- items System.Collections.Generic.IEnumerable{``0}
- options OfficeIMO.Markdown.TableFromOptions = null
public TableBuilder FromSequence<T>(IEnumerable<T> items, params ValueTuple<String, Func<T, Object>>[] columns) #TableBuilderPopulates the table from a sequence using explicit column selectors.
Type Parameters
- T
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<IReadOnlyList<String>> rows) #TableBuilderAdds multiple rows.
Parameters
- rows System.Collections.Generic.IEnumerable{System.Collections.Generic.IReadOnlyList{System.String}}
public TableBuilder Rows(IEnumerable<ValueTuple<String, String>> rows) #TableBuilderAdds two-column rows from tuples.
Parameters
- rows System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,System.String}}
public TableBuilder Rows(IEnumerable<KeyValuePair<String, String>> rows) #TableBuilderAdds 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