Cell.SetStyle Method

NanoXLSX

NanoXLSX

CellSetStyle Method

Sets the style of the cell

Namespace:  NanoXLSX
Assembly:  NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)
Syntax
C#
public Style SetStyle(
	Style style
)

Parameters

style
Type: NanoXLSX.StyleStyle
Style to assign

Return Value

Type: Style
If the passed style already exists in the workbook, the existing one will be returned, otherwise the passed one
Exceptions
ExceptionCondition
StyleExceptionThrows an StyleException if the style cannot be referenced or no style was defined
See Also