【问题标题】:TextField() Set caret positionTextField() 设置插入符号位置
【发布时间】:2010-10-06 22:10:36
【问题描述】:

如何设置插入符号的位置,只有

this.caretIndex(阅读)

【问题讨论】:

    标签: actionscript-3 apache-flex flex3


    【解决方案1】:

    使用setSelection(beginIndex:int, endIndex:int):void

    例如

    this.textField.setSelection(20, 20)
    

    【讨论】:

      猜你喜欢
      • 2011-08-22
      • 2013-07-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-20
      • 2013-07-18
      • 2020-08-17
      相关资源
      最近更新 更多