回复 1楼darkelf的帖子
可以通过以下方法获取:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.Sheets.Count = 2;
- this.fpSpread1.ActiveSheetChanged += new EventHandler(fpSpread1_ActiveSheetChanged);
- this.fpSpread1.ActiveSheetChanging += new FarPoint.Win.Spread.ActiveSheetChangingEventHandler(fpSpread1_ActiveSheetChanging);
- }
- void fpSpread1_ActiveSheetChanging(object sender, FarPoint.Win.Spread.ActiveSheetChangingEventArgs e)
- {
- int preActiveSheetIndex = this.fpSpread1.ActiveSheetIndex;
- }
- void fpSpread1_ActiveSheetChanged(object sender, EventArgs e)
- {
- int newActiveSheetIndex = this.fpSpread1.ActiveSheetIndex;
-
- }
复制代码 |