找回密码
 立即注册

QQ登录

只需一步,快速开始

liuning

注册会员

6

主题

19

帖子

118

积分

注册会员

积分
118
liuning
注册会员   /  发表于:2016-3-21 19:31  /   查看:3296  /  回复:1
      焦点在Spread 内 的某个货币类型的cell 上,按下enter,进入编辑模式。
想问下,进入到编辑模式下,能控制光标在这个CELL里的位置吗?最好是光标放在数字的后边!!

1 个回复

倒序浏览
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-3-22 18:13:15
沙发
你好 ,通过更改单元格的 FocusPosition,可以控制编辑室光标的问题
  1.      TextCellType tct = new TextCellType();
  2.             tct.FocusPosition = EditorFocusCursorPosition.SelectAll;
  3.             CurrencyCellType cct = new CurrencyCellType();
  4.             cct.FocusPosition = EditorFocusCursorPosition.End;

  5.             fpSpread1.Sheets[0].Cells[0, 0].CellType = tct;
  6.             fpSpread1.Sheets[0].Cells[0, 1].CellType = cct;
复制代码
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部