NanoXLSX Library Documentation
![]() | CellSetStyle Method |
Sets the style of the cell
Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)

C#
public Style SetStyle( Style style )
Parameters
- style
- Type: NanoXLSX.StyleStyle
Style to assign
Return Value
Type: StyleIf the passed style already exists in the workbook, the existing one will be returned, otherwise the passed one

Exception | Condition |
---|---|
StyleException | Throws an StyleException if the style cannot be referenced or no style was defined |
