找回密码
 立即注册

QQ登录

只需一步,快速开始

gw0506
超级版主   /  发表于:2011-4-11 10:09:00
沙发
你可以参看“Default Keyboard Navigation”章节,Delete键默认对应的是DeleteShape操作。
想修改的话,重新设置InputMap即可。
例如:
  1. private void Form1_Load(object sender, System.EventArgs e)
  2. {

  3.    FarPoint.Win.Spread.InputMap im = new FarPoint.Win.Spread.InputMap();

  4.    // Define the operation of pressing Enter key in cells not being edited as "Move to the next row".

  5.    im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);

  6.    im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);

  7.    // Define the operation of pressing Enter key in cells being edited as "Move to the next row".

  8.    im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
  9.    im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow);
  10. }
复制代码
回复 使用道具 举报
12
您需要登录后才可以回帖 登录 | 立即注册
返回顶部