问题
I am inserting data into a dummy excel. I need to append symbols before texts into some cell. Please let me know how can i achieve this using ClosedXML.
回答1:
In ClosedXML, you can set this value with this code:
ws.Cell(1, 1).Value = "❶ Symbol";
To enter the ❶, you can use the Windows program Character Map
to select and copy the appropriate character.
来源:https://stackoverflow.com/questions/39489347/how-can-i-add-symbols-to-a-cell-using-closedxml