NanoXLSX Library Documentation
![]() | WorksheetAddNextCell Method (Cell, Boolean, Style) |
Method to insert a generic cell to the next cell position
Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)

C#
private void AddNextCell( Cell cell, bool incremental, Style style )
Parameters
- cell
- Type: NanoXLSXCell
Cell object to insert - incremental
- Type: SystemBoolean
If true, the address value (row or column) will be incremented, otherwise not - style
- Type: NanoXLSX.StyleStyle
If not null, the defined style will be applied to the cell, otherwise no style or the default style will be applied

Exception | Condition |
---|---|
StyleException | Throws a StyleException if the default style was malformed or if the active style cannot be referenced |

Recognized are the following data types: string, int, double, float, long, DateTime, bool. All other types will be casted into a string using the default ToString() method
