回复 1楼syokouken的帖子
这个办法可以试试:
在光标移动事件: MouseMove
- void fpSpread1_MouseMove(object sender, MouseEventArgs e)
- {
- HitTestInformation info = fpSpread1.HitTest(e.X, e.Y);
- if (info == null || info.ViewportInfo == null)
- {
- return;
- }
- int row = info.ViewportInfo.Row;
- int col = info.ViewportInfo.Column;
-
- this.fpSpread1.Sheets[0].Models.Selection.AddSelection(row, 0, 1, this.fpSpread1.Sheets[0].ColumnCount);
- }
复制代码 |