create_tag


Description:

public unowned TextTag create_tag (string? tag_name, ...)

Creates a tag and adds it to the tag table for this.

Equivalent to calling [ctor@Gtk.TextTag.new] and then adding the tag to the buffer’s tag table. The returned tag is owned by the buffer’s tag table, so the ref count will be equal to one.

If tag_name is null, the tag is anonymous.

If tag_name is non-null, a tag called tag_name must not already exist in the tag table for this buffer.

The first_property_name argument and subsequent arguments are a list of properties to set on the tag, as with @set.

Parameters:

this

a `GtkTextBuffer`

tag_name

name of the new tag

...

null-terminated list of property names and values

first_property_name

name of first property to set

Returns:

a new tag