找回密码
 立即注册

QQ登录

只需一步,快速开始

liuyunan

注册会员

8

主题

41

帖子

161

积分

注册会员

积分
161

微信认证勋章

liuyunan
注册会员   /  发表于:2017-10-27 15:13  /   查看:3788  /  回复:3
点击Spread单元格的时候,进入编辑模式,此时光标位置在点击处,如图: image.png292848510.png ,想要调整为每次进入单元格编辑模式时,光标位置都自动在文本开头,如图: image.png454605712.png 。请问有什么办法么?

3 个回复

倒序浏览
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2017-10-27 17:32:14
沙发
celltype 有 FocusPosition属性

  1.             var textcellType = new FarPoint.Win.Spread.CellType.TextCellType();
  2.             textcellType.FocusPosition = FarPoint.Win.Spread.CellType.EditorFocusCursorPosition.FirstInputPosition;

  3.             fpSpread1.ActiveSheet.Cells[0, 0].CellType = textcellType;
复制代码
回复 使用道具 举报
liuyunan
注册会员   /  发表于:2017-10-29 14:20:47
板凳
好的,我试试,周五那天没看见,多谢指点哈!
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2017-10-30 09:17:02
地板
有问题再回帖
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部