Worksheet.AddNextCell Method (Object, Style)

PicoXLSX

PicoXLSX

WorksheetAddNextCell Method (Object, Style)

Adds an object to the next cell position. If the type of the value does not match with one of the supported data types, it will be casted to a String. A prepared object of the type Cell will not be casted but adjusted

Namespace:  PicoXLSX
Assembly:  PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)
Syntax
C#
public void AddNextCell(
	Object value,
	Style style
)

Parameters

value
Type: SystemObject
Unspecified value to insert
style
Type: PicoXLSXStyle
Style object to apply on this cell
Exceptions
ExceptionCondition
RangeExceptionThrows a RangeException if the next cell is out of range (on row or column)
StyleExceptionThrows a StyleException if the default style was malformed
Remarks
Recognized are the following data types: Cell (prepared object), string, int, double, float, long, DateTime, bool. All other types will be casted into a string using the default ToString() method
See Also