Sets the maximum allowed length of the contents of the actor.
If the current contents are longer than the given length, then they will be truncated to fit.
this |
a Text |
max |
the maximum number of characters allowed in the text actor; 0 to disable or -1 to set the length of the current string |