ColumnComposer
OfficeIMO.Excel.ExcelReportBuilder
Column-scoped composer used by ColumnComposer.Columns to write simple sections into a single column while keeping track of vertical position.
Inheritance
- object
- ColumnComposer
Usage
Explore 12 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Method ColumnComposer.BulletedList
- Method ColumnComposer.Columns
- Method ColumnComposer.KeyValue
- Method ColumnComposer.KeyValues
- Method ColumnComposer.Paragraph
- Method ColumnComposer.Section
- Method ColumnComposer.Spacer
Accepted by parameters 5
- Method ExcelReportBuilder.Columns
- Method ExcelReportBuilder.ColumnsAdaptive
- Method ExcelReportBuilder.ColumnsAdaptiveRows
- Method ExcelReportBuilder.FlowColumns
- Method ColumnComposer.Columns
Methods
public ExcelTable AddTable<T>(IEnumerable<T?> items, string? title = null, Action<ObjectFlattenerOptions>? configure = null, ExcelTableStyle style = TableStyleMedium9, bool autoFilter = true, Action<ExcelTableVisualOptions>? visuals = null) #Renders a table inside this column starting at the current row and returns the editable native table. This variant avoids freezing panes to prevent conflicts when multiple tables are placed per sheet.
Type Parameters
- T
Parameters
- items System.Collections.Generic.IEnumerable<T?>
- title string? = null
- configure System.Action<OfficeIMO.Data.ObjectFlattenerOptions>? = null
- style OfficeIMO.Excel.ExcelTableStyle = TableStyleMedium9
- autoFilter bool = true
- visuals System.Action<OfficeIMO.Excel.ExcelTableVisualOptions>? = null
Returns
ExcelTablepublic ColumnComposer BulletedList(IEnumerable<string> items) #Writes a bullet for each item (• text) in this column.
Parameters
- items System.Collections.Generic.IEnumerable<string>
Returns
ColumnComposerpublic ColumnComposer Columns(int count, Action<ColumnComposer[]> configure, int columnWidth = 3, int gutter = 1, ExcelReportOverflowMode overflow = Throw) #Splits the current column region into horizontal sub-columns, rendering each via a nested ColumnComposer. Advances the parent column by the tallest child block and applies a spacer afterwards.
Parameters
- count int
- Number of sub-columns to create.
- configure System.Action<OfficeIMO.Excel.ExcelReportBuilder.ColumnComposer[]>
- Callback receiving the nested ColumnComposer instances.
- columnWidth int = 3
- Width per sub-column in grid columns.
- gutter int = 1
- Spacing between sub-columns in grid columns.
- overflow OfficeIMO.Excel.ExcelReportOverflowMode = Throw
- Specifies how content that exceeds the allocated width should be handled.
Returns
ColumnComposerpublic ColumnComposer KeyValue(string key, object? value) #Writes a two-column key/value row with styled key cell.
Parameters
- key string
- value object?
Returns
ColumnComposerpublic ColumnComposer KeyValues(IEnumerable<ValueTuple<string, object?>> pairs) #Writes multiple key/value rows in order.
Parameters
- pairs System.Collections.Generic.IEnumerable<System.ValueTuple<string, object?>>
Returns
ColumnComposerpublic ColumnComposer Paragraph(string text) #Writes a single paragraph cell and advances the row.
Parameters
- text string
Returns
ColumnComposerpublic ColumnComposer Section(string text) #Writes a section header cell using the current theme's section style.
Parameters
- text string
Returns
ColumnComposerpublic ColumnComposer Spacer(int rows = 1) #Adds vertical space.
Parameters
- rows int = 1
- Number of rows to skip (minimum 1).
Returns
ColumnComposer