【发布时间】:2016-09-29 20:58:56
【问题描述】:
【问题讨论】:
标签: epplus
【问题讨论】:
标签: epplus
使用RichText 集合来构建它:
using (var pck = new ExcelPackage())
{
var wb = pck.Workbook;
var ws = wb.Worksheets.First();
var cell = ws.Cells["B2"];
cell.RichText.Add("This is some ");
cell.RichText.Add("formatting");
cell.RichText.Add(" withing a value");
cell.RichText[1].Color = Color.Red;
cell.RichText[1].Size = 14;
pck.Save();
}
【讨论】: