Cell.SetStyle Method

PicoXLSX

PicoXLSX

CellSetStyle Method

Sets the style of the cell

Namespace:  PicoXLSX
Assembly:  PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)
Syntax
C#
public Style SetStyle(
	Style style
)

Parameters

style
Type: PicoXLSXStyle
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