如何使用closedxml将符号添加到单元格? [英] How can I add symbols to a cell using closedxml?

查看:137
本文介绍了如何使用closedxml将符号添加到单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将数据插入虚拟excel.我需要在文本之前将符号附加到某个单元格中. 请让我知道如何使用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.

推荐答案

在ClosedXML中,您可以使用以下代码设置此值:

In ClosedXML, you can set this value with this code:

ws.Cell(1, 1).Value = "❶ Symbol";

要输入❶,可以使用Windows程序Character Map选择并复制适当的字符.

To enter the ❶, you can use the Windows program Character Map to select and copy the appropriate character.

这篇关于如何使用closedxml将符号添加到单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆