您好,
可以参考以下代码- private void fpSpread1_SelectionChanged(object sender, FarPoint.Win.Spread.SelectionChangedEventArgs e)
- {
- FarPoint.Win.Spread.Model.CellRange cr;
- cr = e.View.Sheets[0].GetSelection(0);
- Label1.Text = "The first column in the selection is " + cr.Column + " and the first row is " + cr.Row;
- }
复制代码 |