可以定制键盘事件,例如:
- FarPoint.Win.Spread.InputMap inputmap1;
- inputmap1 = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
- inputmap1.Put(new FarPoint.Win.Spread.Keystroke(Keys.Left, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToPreviousColumn);
- FarPoint.Win.Spread.InputMap inputmap2;
- inputmap2 = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
- inputmap2.Put(new FarPoint.Win.Spread.Keystroke(Keys.Left, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToPreviousColumn);
复制代码
帮助文档【Managing Keyboard Interaction】中有更详细的说明 |