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

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: NanoXLSXCellAddress
Start address - endAddress
- Type: NanoXLSXCellAddress
End address - style
- Type: NanoXLSX.StyleStyle
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
