当单元格Note过多时会,出现无法完整显示内容的情况。Spread 提供了 TextTipFetch 事件来获取 Note 显示事件,在事件中更改 Note 大小。
代码如下:
private void Form1_Load(object sender, EventArgs e)
{
fpSpread1.ActiveSheet.Cells[0, 0].Note = "做撒的发生的发撒的发生的发撒的发生的发撒的发生的发撒的发生的发撒的发生的发撒的发生的发撒的发生的发";
this.fpSpread1.TextTipFetch+=new FarPoint.Win.Spread.TextTipFetchEventHandler(fpSpread1_TextTipFetch);
}
private void fpSpread1_TextTipFetch(object sender, FarPoint.Win.Spread.TextTipFetchEventArgs e)
{
if (e.FetchCellNote)
{
e.TipWidth = 500;
}
}
