# GimpUi.prop_text_buffer_new

    function prop_text_buffer_new(config: GObject.Object, property_name: String, max_len: Number(gint)): Gtk.TextBuffer {
        // Gjs wrapper for gimp_prop_text_buffer_new()
    }

Creates a Gtk.TextBuffer to set and display the value of the specified string property. Unless the string is expected to contain multiple lines or a large amount of text, use GimpUi.prop_entry_new instead. See Gtk.TextView for information on how to insert a text buffer into a visible widget.

If max_len is 0 or negative, the text buffer allows an unlimited number of characters to be entered.

Since 2.4

config

  Object to which property is attached.

property_name

  Name of string property.

max_len

  Maximum allowed length of text (in characters).

Returns

  A new Gtk.TextBuffer.