没有提供方法,因此只能是通过上述 模拟按键的方法
SpreadActions.Undo和Redo就是触发撤销和重写动作
- var inputmap = fpSpread1.GetInputMap(InputMapMode.WhenAncestorOfFocused);
- inputmap.Put(new Keystroke(Keys.NumPad1, Keys.Control), FarPoint.Win.Spread.SpreadActions.Undo);
- inputmap.Put(new Keystroke(Keys.NumPad2, Keys.Control), FarPoint.Win.Spread.SpreadActions.Redo);
复制代码 |