set_max_length


Description:

public void set_max_length (int max)

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.

Parameters:

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




2022 vala-language.org