Click or drag to resize
NanoXLSX

WorksheetAddCell(Object, Int32, Int32, Style) Method

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

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntax
C#
public void AddCell(
	Object value,
	int columnNumber,
	int rowNumber,
	Style style
)

Parameters

value  Object
Unspecified value to insert
columnNumber  Int32
Column number (zero based)
rowNumber  Int32
Row number (zero based)
style  Style
Style to apply on the cell
Exceptions
ExceptionCondition
StyleExceptionThrows a StyleException if the passed style is malformed
RangeExceptionThrows a RangeException if the passed cell address is out of range
Remarks
Recognized are the following data types: Cell (prepared object), string, int, double, float, long, DateTime, TimeSpan, bool. All other types will be cast into a string using the default ToString() method
See Also