问题一,通过以下方法可以得到:
- fpSpread1.ActiveSheet.GetCustomFunctionEnumerator()
复制代码
问题二,可以使用Sheets.Changing事件来监听Sheet的改变
- private void Form1_Load(object sender, EventArgs e)
- {
- fpSpread1.Sheets.Changing += new CollectionChangeEventHandler(Sheets_Changing);
- }
- void Sheets_Changing(object sender, CollectionChangeEventArgs e)
- {
- if (e.Action == CollectionChangeAction.Add)
- {
- }
- }
复制代码 |