0

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

1 回答 1

0

这是 NPOI 1.2.4 中的一个错误。它已经在 1.2.5 中修复

于 2012-07-20T09:54:32.287 回答