Text.getMaxLength

Retrieves the maximum allowed length of the text in @self.

See [method@Gtk.Text.set_max_length].

This is equivalent to getting @self's GtkEntryBuffer and calling [method@Gtk.EntryBuffer.get_max_length] on it.

class Text
int
getMaxLength
()

Return Value

Type: int

the maximum allowed number of characters in GtkText, or 0 if there is no maximum.

Meta