string格式化的单元格注释EPPLUS库
使用EPPLUS创build.xlsx文件时可以格式化注释吗? 据我所知,唯一的方法是:
ExcelComment AddComment (string Text ,string Author );
还有其他已知的限制,以评论这个图书馆?
如果是的话,在.net中有更好的select吗?
事实certificate,在过早地决定EPPLUS是有限的时候我错了
评论格式
AddComment方法创build了对象,并返回它。 这样,您可以使用ExcelComment中的 RichTextCollection编辑对象
这个例子粗体显示了单元格的一部分注释:
ExcelComment commento = wItem.AddComment(null, "Sys"); commento.RichText.RemoveAt(0); ExcelRichText ert = commento.RichText.Add(dataItem.Commento[0]); ert.Bold = true; ert = commento.RichText.Add(dataItem.Commento[1]); ert.Bold = false;
截断
至于截断,起初由于评论泡沫的维度而不可见。
使用Autofit属性
wItem.Comment.AutoFit = true;