【发布时间】:2018-12-07 16:13:42
【问题描述】:
我想复制/粘贴工作表中的范围,包括单元格中的值/属性(删除线)到另一个新工作簿。
我无法在新工作表上设置此属性。使用 Microsoft.Office.Interop.Excel; 我无法像图片中那样复制此属性。我该怎么做。 1 个单元格中的 3 行具有不同的属性
public void WriteCellWithFont(int i, int j , _Excel.Range cell)
{
i++;
j++;
ws.Cells[i, j].Value2 = cell.Value2;
ws.Cells[i,j].Font.Strikethrough = true;
}
【问题讨论】: