回复 1楼hptj的帖子
hptj 你好,
获取方法如下,e.SheetTabIndex==-1时即为新增事件:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.TabStrip.ButtonPolicy = TabStripButtonPolicy.Always;
- this.fpSpread1.Sheets.Count = 2;
- this.fpSpread1.SheetTabClick += fpSpread1_SheetTabClick;
- }
- void fpSpread1_SheetTabClick(object sender, SheetTabClickEventArgs e)
- {
- if (e.SheetTabIndex==-1)
- {
-
- }
- }
- }
复制代码 |