我正在尝试在单元格上设置评论,但无论我是否设置它总是可见的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