简单的一个办法是在TextTipFetch事件中设置Tooltip时,将显示此注释的范围就设置为合并单元格的范围
Load方法中
- fpSpread1.TextTipPolicy = FarPoint.Win.Spread.TextTipPolicy.Floating;
- fpSpread1.TextTipFetch += FpSpread1_TextTipFetch;
复制代码
TextTipFetch事件
- private void FpSpread1_TextTipFetch(object sender, TextTipFetchEventArgs e)
- {
- if (e.Row == 4 && e.Column > 1 && e.Column < 5)
- {
- e.TipText = "Text Tip on hovering mouse anywhere on fpSpread.";
- e.ShowTip = true;
- }
- }
复制代码
|