回复 1楼jinqiong的帖子
不客气, 这个需要自定义快捷键实现, 参考代码如下:
-
- InputMap im = fpSpread1.GetInputMap(InputMapMode.WhenFocused);
- ActionMap am = fpSpread1.GetActionMap();
- im.Put(new Keystroke(Keys.Up, Keys.Control | Keys.Shift), "UpMove");
- am.Put("UpMove", new ClearValueAction());
- public class ClearValueAction : FarPoint.Win.Spread.Action
- {
- public override void PerformAction(object source)
- {
- if (source is SpreadView)
- {
- SpreadView spread = (SpreadView)source;
- SheetView sheet = spread.Sheets[spread.ActiveSheetIndex];
- CellRange cr = sheet.GetSelection(0);
- //Move
- }
- }
- }
复制代码 |