【问题标题】:How to get the line count of content of the Spark TextArea如何获取 Spark TextArea 内容的行数
【发布时间】:2010-12-27 06:41:49
【问题描述】:

我想获取火花文本区域内容的行数。

请帮帮我。

【问题讨论】:

    标签: apache-flex actionscript-3 flex4


    【解决方案1】:
    【解决方案2】:

    读取 Spark 标签行数的一种方法是导入 mx_internal 命名空间,例如

    use namespace mx_internal;
    

    然后访问标签的 textLines 属性,如下所示:

    var numLines : int = myLabel.mx_internal::textLines.length;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-30
      • 1970-01-01
      • 2011-09-22
      • 2012-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多