Worksheet.AddCellRangeInternal(T) Method

PicoXLSX

PicoXLSX

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)
Syntax
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
Exceptions
ExceptionCondition
RangeExceptionThrows an RangeException if the number of cells differs from the number of passed values
StyleExceptionThrows an StyleException if the active style cannot be referenced while creating the cells
Remarks
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
See Also