PicoXLSX Library Documentation
![]() | WorksheetAddCellRangeInternalT Method |
Internal function to add a generic list of value to the defined cell range
Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)

C#
private void AddCellRangeInternal<T>( List<T> values, CellAddress startAddress, CellAddress endAddress, Style style )
Parameters
- values
- Type: System.Collections.GenericListT
List of values - startAddress
- Type: PicoXLSXCellAddress
Start address - endAddress
- Type: PicoXLSXCellAddress
End address - style
- Type: PicoXLSXStyle
Style to apply on the all cells of the range
Type Parameters
- T
- Data type of the generic value list

Exception | Condition |
---|---|
RangeException | Throws an RangeException if the number of cells differs from the number of passed values |
StyleException | Throws an StyleException if the active style cannot be referenced while creating the cells |

The data types in the passed list can be mixed. Recognized are the following data types: Cell (prepared object), string, int, double, float, long, DateTime, bool. All other types will be casted into a string using the default ToString() method
