回复 3楼wiener2008的帖子
Esc 问题设置代码如下:
- private void Form1_Load(object sender, EventArgs e)
- {
- InputMap im = fpSpread1.GetInputMap(InputMapMode.WhenAncestorOfFocused);
- ActionMap am = fpSpread1.GetActionMap();
- im.Put(new Keystroke(Keys.Escape, Keys.None), "NewControlHomeAction");
- am.Put("NewControlHomeAction", new NewControlHomeAction());
- }
- }
- ///<summary>
- ///默认情况下 Ctrl + Home 即选择Cell[0,0],自定义动作实现选择 Cell[0,1]
- ///</summary>
- public class NewControlHomeAction : FarPoint.Win.Spread.Action
- {
- public override void PerformAction(object source)
- {
- if (source is SpreadView)
- {
- SpreadView SpreadView = (SpreadView)source;
- SpreadView.EditMode=false;
- }
- }
- }
复制代码
为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢 |