NPOI 1.2.4 ignores IComment.Visible value
本文关键字:IComment Visible value ignores NPOI | 更新日期: 2023-09-27 18:22:37
我正试图在单元格上设置注释,但无论是否设置IComment.Visible = false
,它始终可见。在NPOI 1.2.3中,一切都按预期进行,但NPOI 1.2.4中出现了此问题。下面是一个代码片段。谢谢
IComment cellComment = patriarch1.CreateCellComment(new HSSFClientAnchor(0, 0, 0, 0, 4, 2, 14, 5));
HSSFRichTextString richText = new HSSFRichTextString("Some notes on the cell...");
richText.ApplyFont(commentFont);
cellComment.String = richText;
cell.CellComment = cellComment;
cellComment.Visible = false; // ignored
这是NPOI 1.2.4中的一个错误。它已经在1.2.5 中修复了