 | WorksheetSetStyle(String, Style) Method |
Sets the passed style on the passed address expression. Such an expression may be a single cell or a cell range.
If the cell is 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.7+3223c8b99fcd3402b4ae016daa480abac16f8a9f
Syntaxpublic void SetStyle(
string addressExpression,
Style style
)
Parameters
- addressExpression String
- Expression of a cell address or range of addresses
- style Style
- Style to apply or null to clear the range
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