API Reference
Class
ColumnBuilder
Fluent builder for adjusting a single column (width, visibility) and writing cells in that column.
Inheritance
- Object
- ColumnBuilder
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 ColumnBuilder.AutoFit
- Method ColumnBuilder.Cell
- Method ColumnBuilder.Hidden
- Method ColumnBuilder.Width
Accepted by parameters
- Method ColumnCollectionBuilder.Col
Methods
public ColumnBuilder Cell(Int32 row, Object value = null, String formula = null, String numberFormat = null) #Returns:
ColumnBuilderWrites a cell in this column with optional value, formula, and number format.
Parameters
- row System.Int32
- 1-based row index.
- value System.Object = null
- Optional value.
- formula System.String = null
- Optional A1-style formula.
- numberFormat System.String = null
- Optional number format code.
public ColumnBuilder Width(Double width) #Returns:
ColumnBuilderSets the column width (Excel column units).
Parameters
- width System.Double