I'm aware of the following solution for adding symbols into cells using closedxml in vb
ws.Cell(1, 1).Value = "❶ Symbol";
(How can I add symbols to a cell using closedxml?)
And I am currently using the below example to set the wingdings value in c#
private void CreateExcelTableBodyCellSymbolCircle(IXLWorksheet worksheet, string cellID, XLColor colour)
{
const string circleSymbol = "l";
PopulateExcelTableCellWithSymbol(worksheet, cellID, colour, circleSymbol);
}
private void PopulateExcelTableCellWithSymbol(IXLWorksheet worksheet, string cellID, XLColor colour, string symbolValue)
{
worksheet.Cell(cellID).DataType = XLCellValues.Text;
worksheet.Cell(cellID).Value = symbolValue;
worksheet.Cell(cellID).Style.Font.FontName = "Wingdings";
worksheet.Cell(cellID).Style.Font.FontColor = colour;
}
But I'm looking for a way to add the symbols into the cell by utilising the symbol's hex character code (displayed in the symbol popup in excel)