回复 3楼moriya的帖子
请通过以下代码测试:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.Sheets[0].SelectionPolicy = FarPoint.Win.Spread.Model.SelectionPolicy.MultiRange;
- }
- private void fpSpread1_SelectionChanged(object sender, FarPoint.Win.Spread.SelectionChangedEventArgs e)
- {
- FarPoint.Win.Spread.Model.CellRange cr = e.Range;
- string text = Clipboard.GetText();
- Clipboard.Clear();
- Clipboard.SetText(text + this.fpSpread1.Sheets[0].Cells[e.Range.Row, e.Range.Column].Text+"+");
- MessageBox.Show(Clipboard.GetText());
- }
复制代码 |