Gtk.TextBuffer.prototype.serialize
function serialize(content_buffer:Gtk.TextBuffer, format:Gdk.Atom, start:Gtk.TextIter, end:Gtk.TextIter):[guint8] { // Gjs wrapper for gtk_text_buffer_serialize() }
This function serializes the portion of text between start and end in the rich text format represented by format.
format<!-- -->s to be used must be registered using Gtk.TextBuffer.prototype.register_serialize_format or Gtk.TextBuffer.prototype.register_serialize_tagset beforehand.
Since 2.10
- content_buffer
the Gtk.TextBuffer to serialize
- format
the rich text format to use for serializing
- start
start of block of text to serialize
- end
end of block of test to serialize
- Returns
the serialized data, encoded as format