 | WorksheetSetStyle(Range, Style) Method |
Sets the passed style on the passed cell range. If cells are already existing, the style will be added or replaced.
Otherwise, an empty cell will be added with the assigned style. If the passed style is null, all styles will be removed on existing cells and no additional (empty) cells are added to the worksheet
Namespace: NanoXLSXAssembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.5+4f4b44a718a20dda8ca2c0c4d00bd7eee7c80f5d
Syntaxpublic void SetStyle(
Range cellRange,
Style style
)
Parameters
- cellRange Range
- Cell range to apply the style
- style Style
- Style to apply
RemarksNote: This method may invalidate an existing date or time value since dates and times are defined by specific style. The result of a redefinition will be a number, instead of a date or time
See Also