PicoXLSX Library Documentation
![]() | CellSetStyle Method |
Sets the style of the cell
Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)

C#
public Style SetStyle( Style style )
Parameters
- style
- Type: PicoXLSXStyle
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 |
