problem appear:
When the cell styles (to keep the original style) modified again (to modify certain ranks of the table), a modified style will be applied to the entire table, as follows:
Here only modify the background color of certain circulating cells lines
Or the way the code below:
result:
The right way is as follows:
- We need to clone the conventional format to the new style inside
- To modify the style in which the new style
- Finally, the new style assigned to the cell Cell
result:
note:
Each cell styles are created using the new CreateCellStyle (), after cell styles to create a workbook will be placed in a queue to maintain, can only create the 4000 style, than it does not create,
Thus using the same unit for the format, to be cached, repeat use.