set_max_length


Description:

public void set_max_length (int max_length)

Sets the maximum allowed length of the contents of the buffer.

If the current contents are longer than the given length, then they will be truncated to fit.

Parameters:

this

a TextBuffer

max_length

the maximum length of the entry buffer, or 0 for no maximum. (other than the maximum length of entries.) The value passed in will be clamped to the range [ 0, CLUTTER_TEXT_BUFFER_MAX_SIZE ].




2022 vala-language.org