wangleiecho 你好,请尝试以下代码:- FarPoint.Win.Spread.Model.CellRange selectRange;
- private void fpSpread1_MouseDown(object sender, MouseEventArgs e)
- {
- if (e.Button== System.Windows.Forms.MouseButtons.Right&&selectRange!=null)
- {
- this.fpSpread1.Sheets[0].Models.Selection.RemoveSelection(selectRange.Row, selectRange.Column, selectRange.RowCount, selectRange.ColumnCount);
- }
- }
- private void fpSpread1_SelectionChanged(object sender, FarPoint.Win.Spread.SelectionChangedEventArgs e)
- {
- selectRange = e.Range;
- }
复制代码 |