回复 1楼pinglg的帖子
Spread for WinForms 6.0 中可以在ClipboardChanging中记录复制的区域,然后在ClipboardPasted中来使用:
- CellRange cr = null;
- private void fpSpread1_ClipboardChanging(object sender, EventArgs e)
- {
- cr = fpSpread1.ActiveSheet.GetSelection(0);
- }
- private void fpSpread1_ClipboardPasting(object sender, FarPoint.Win.Spread.ClipboardPastingEventArgs e)
- {
- //MessageBox.Show(cr.ToString());
- }
- private void fpSpread1_ClipboardPasted(object sender, FarPoint.Win.Spread.ClipboardPastedEventArgs e)
- {
- MessageBox.Show(cr.ToString());
- }
复制代码 |