styleRange
On this page
Apply a style to every existing cell in a range.
Mutates ws in place and returns the same worksheet for chaining. When
createCells is true, missing cells in the range are created as styled stubs.
styleRange(ws: WorkSheet, range: string | Range, style: CellStyle, opts?: {
createCells?: boolean;
}): WorkSheet
Parameters
| Name | Type | Required |
|---|---|---|
ws | WorkSheet | Yes |
range | string | Range | Yes |
style | CellStyle | Yes |
opts | { createCells?: boolean } | No |