Click or drag to resize
NanoXLSX

WorksheetAddCellRangeInternalT Method

Internal function to add a generic list of value to the defined cell range

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.2+7f12a949130e0be1e987e553d2d08c083176cdca
Syntax
C#
private void AddCellRangeInternal<T>(
	IReadOnlyList<T> values,
	Address startAddress,
	Address endAddress,
	Style style
)

Parameters

values  IReadOnlyListT
List of values
startAddress  Address
Start address
endAddress  Address
End address
style  Style
Style to apply on the all cells of the range

Type Parameters

T
Data type of the generic value list
Exceptions
ExceptionCondition
RangeExceptionThrows a RangeException if the number of cells differs from the number of passed values
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, TimeSpan, bool. All other types will be cast into a string using the default ToString() method
See Also