Graphics

 View Only
Expand all | Collapse all

Script Editor Len(whatever.Text) but for number of lines instead of characters

  • 1.  Script Editor Len(whatever.Text) but for number of lines instead of characters

    Posted 04-27-2014 11:08
    I'm trying to make auto resizing text using the script editor. So far everything is going fine, but I feel my resizing would be more precise if I was using the number of lines the text box uses instead of the number of characters. Is there a way to determine the number of lines of text in a text box with the script editor?


  • 2.  RE: Script Editor Len(whatever.Text) but for number of lines instead of characters

    Posted 04-27-2014 11:32
    Hi Kevin,

    You can get the the number of lines by using TextObject.Linecount.

    Best regards,

    Kenneth

    #XPression


  • 3.  RE: Script Editor Len(whatever.Text) but for number of lines instead of characters

    Posted 04-27-2014 15:26
    Awesome thanks that worked out perfect!

    #XPression