Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 单元格注释EPPLUS库的字符串格式_.net_Excel_Epplus - Fatal编程技术网

.net 单元格注释EPPLUS库的字符串格式

.net 单元格注释EPPLUS库的字符串格式,.net,excel,epplus,.net,Excel,Epplus,使用EPPLUS创建.xlsx文件时是否可以格式化注释? 据我所知,唯一的方法是: ExcelCommentAddComment(字符串文本,字符串作者) 此库中的注释是否存在其他已知限制 如果是,在.net中是否有更好的替代方案?因为我过早地认为EPPLUS是有限的,这是错误的 注释格式 AddComment方法创建了对象并返回它。这样,您可以使用ExcelComment中的RichTextCollection编辑对象 此示例将单元格注释的一部分输入为粗体: ExcelComment co

使用EPPLUS创建.xlsx文件时是否可以格式化注释? 据我所知,唯一的方法是:
ExcelCommentAddComment(字符串文本,字符串作者)

此库中的注释是否存在其他已知限制

如果是,在.net中是否有更好的替代方案?

因为我过早地认为EPPLUS是有限的,这是错误的

注释格式 AddComment方法创建了对象并返回它。这样,您可以使用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;

截断 至于截断,由于注释气泡的尺寸,一开始它不可见。
使用的自动拟合属性

wItem.Comment.AutoFit = true;

事实证明,我过早地决定EPPLUS是有限的是错误的

注释格式 AddComment方法创建了对象并返回它。这样,您可以使用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;

截断 至于截断,由于注释气泡的尺寸,一开始它不可见。
使用的自动拟合属性

wItem.Comment.AutoFit = true;

对于可能不受支持的注释,您还需要做什么?抱歉,没有不需要office许可证的替代方案。我遇到了一些被截断的评论的问题(因为我认为太长了)。对于可能不受支持的评论,您还需要做什么?恐怕没有不需要office许可证的替代方案。我有一些评论被截断了(因为我觉得太长了)。