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

C#
private void AddNextCell( Cell cell, bool incremental, Style style )
Parameters
- cell
- Type: PicoXLSXCell
Cell object to insert - incremental
- Type: SystemBoolean
If true, the address value (row or column) will be incremented, otherwise not - style
- Type: PicoXLSXStyle
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
