| FarPoint.Win.Spread.InputMap im; | |||
| // 編集中セルの Enter キー押下げによる動作を設定します。 | |||
| im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused); | |||
| // セル編集モードを終了します。 | |||
| im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.StopEditing); | |||
| // アクティブセルの Enter キー押下げによる動作を設定します。 | |||
| im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused); | |||
| // セル編集モードを開始します。 | |||
| im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.StartEditing); | |||
解决焦点在spread中时快捷键不好用的问题
最新推荐文章于 2022-08-05 22:18:02 发布
本文介绍了如何使用FarPoint.Win.Spread库中的InputMap来定制编辑单元格时Enter键的行为,包括开始和结束编辑模式。
2210

被折叠的 条评论
为什么被折叠?



