Search code examples
c#excel-2007closedxml

How can I add symbols to a cell using closedxml?


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.

I want this through closedxml


Solution

  • 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.