# setCellStyle

Source: /xlsx-format/api-reference/functions/setcellstyle

Set or replace the style object on a cell.

Mutates `cell` in place and returns the same object for chaining.

```ts
setCellStyle(cell: CellObject, style: CellStyle): CellObject
```

## Parameters

| Name | Type | Required |
| --- | --- | --- |
| ` cell ` | [` CellObject `](</xlsx-format/api-reference/interfaces/cellobject/>) | Yes |
| ` style ` | [` CellStyle `](</xlsx-format/api-reference/interfaces/cellstyle/>) | Yes |

## Returns

[` CellObject `](</xlsx-format/api-reference/interfaces/cellobject/>)
