【发布时间】:2021-05-26 10:14:33
【问题描述】:
我创建了一个这样的行和单元格 =
Row Row1 = new Row() { RowIndex = 1 };
Row1.AppendChild(new Cell()
{
CellReference = "A1",
DataType = CellValues.String,
CellValue = new CellValue("Color this")
});
谁能告诉我如何在 C# 中使用 openXml 为这个特定的单元格着色?我不想给所有的单元格上色,只给这个特定的单元格上色。
【问题讨论】:
-
这是您所做和实施的工作LINK。它包含如何创建字体、填充、单元格格式等。
-
非常感谢