Click or drag to resize
NanoXLSX

WorksheetAddNextCell(Cell, Boolean, Style) Method

Method to insert a generic cell to the next cell position

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntax
C#
private void AddNextCell(
	Cell cell,
	bool incremental,
	Style style
)

Parameters

cell  Cell
Cell object to insert
incremental  Boolean
If true, the address value (row or column) will be incremented, otherwise not
style  Style
If not null, the defined style will be applied to the cell, otherwise no style or the default style will be applied
Exceptions
ExceptionCondition
StyleExceptionThrows a StyleException if the default style was malformed
Remarks
Recognized are the following data types: string, int, double, float, long, DateTime, TimeSpan, bool. All other types will be cast into a string using the default ToString() method.
If the cell object already has a style definition, and a style or active style is defined, the cell style will be merged, otherwise just set
See Also