Worksheet.AddNextCell Method (Cell, Boolean, Style)

NanoXLSX

NanoXLSX

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)
Syntax
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
Exceptions
ExceptionCondition
StyleExceptionThrows a StyleException if the default style was malformed or if the active style cannot be referenced
Remarks
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
See Also