你可以在这个功能的基础上进行自定义,比如设置 Cells[0,0].Tag = "测试测试测试";,然后在TextTipFetch中显示Tag
- private void fpSpread1_TextTipFetch(object sender, FarPoint.Win.Spread.TextTipFetchEventArgs e)
- {
- if (fpSpread1.ActiveSheet.Cells[e.Row,e.Column].Tag != null)
- {
- e.TipText = ("\n" + fpSpread1.ActiveSheet.Cells[e.Row, e.Column].Tag.ToString() + "\n\n");
- e.ShowTip = true;
- }
- }
复制代码 |