【问题标题】:Insert 'X' symbol into a cell using closedxml in c#在 c# 中使用 closedxml 将“X”符号插入单元格
【发布时间】:2021-11-06 14:58:20
【问题描述】:

我知道以下在 c# 中使用 closedxml 将符号添加到单元格中的解决方案

ws.Cell(1, 1).Value = "X"; 我正在尝试添加“X”符号,但我得到了符号代码。

能否请您提供“X”符号代码给我。

【问题讨论】:

    标签: c# closedxml


    【解决方案1】:

    ws.Cell(1, 1).SetValue("X");

    【讨论】:

    • 我正在尝试为那个“X”设置颜色,但它在背景中应用颜色。我正在使用以下代码。ws.Range(firstCellRow, firstCellCol, lastCellRow, lastCellCol).Style。 Font.FontColor = XLColor.FromHtml(color);
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多