找回密码
 立即注册

QQ登录

只需一步,快速开始

lo20061

最新发帖
lo20061
高级会员   /  发表于:2011-5-17 13:59:00
21#
感谢您的耐心解答,thank you
回复 使用道具 举报
gw0506
超级版主   /  发表于:2011-5-17 16:30:00
22#
你太客气了,这是我们该做的。

另外,关于添加Chart之后,不能undo的问题。Spread Designer是做了特殊处理实现的,所以你的应用程序中如果需要这个功能,也要特殊处理。

具体做法是继承FarPoint.Win.Spread.UndoRedo.UndoAction类,自定义一个ChartInsertUndoAction,实现Undo等几个接口。然后在程序中使用如下代码,将ChartInsertUndoAction加入到Spread的UndoManager中即可。
  1.             this.fpSpread1.AllowUndo = true;
  2.             ChartInsertUndoAction action = new ChartInsertUndoAction(chart,chart.Model,chart.ViewType);
  3.             this.fpSpread1.UndoManager.PerformUndoAction(action);
复制代码
回复 使用道具 举报
123
您需要登录后才可以回帖 登录 | 立即注册
返回顶部