### Class

# Gtk TextTagTable

since: 4.0

#### Description [src]

    final class Gtk.TextTagTable : GObject.Object
      implements Gtk.Buildable {
      /* No available fields */
    }

The collection of tags in a `GtkTextBuffer`

You may wish to begin by reading the text widget conceptual overview, which gives an overview of all the objects and data types related to the text widget and how they work together.

# GtkTextTagTables as GtkBuildable

The `GtkTextTagTable` implementation of the `GtkBuildable` interface supports adding tags by specifying “tag” as the “type” attribute of a `<child>` element.

An example of a UI definition fragment specifying tags:

    <object class="GtkTextTagTable">
     <child type="tag">
       <object class="GtkTextTag"/>
     </child>
    </object>

Available since: 4.0

#### Ancestors

- GObject

#### Implements

- GtkBuildable

#### Constructors

###### gtk_text_tag_table_new

Creates a new `GtkTextTagTable`.

since: 4.0

#### Instance methods

###### gtk_text_tag_table_add

Add a tag to the table.

since: 4.0

###### gtk_text_tag_table_foreach

Calls `func` on each tag in `table`, with user data `data`.

since: 4.0

###### gtk_text_tag_table_get_size

Returns the size of the table (number of tags)

since: 4.0

###### gtk_text_tag_table_lookup

Look up a named tag.

since: 4.0

###### gtk_text_tag_table_remove

Remove a tag from the table.

since: 4.0

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

##### Methods inherited from GtkBuildable (1)

###### gtk_buildable_get_buildable_id

Gets the ID of the `buildable` object.

since: 4.0

#### Signals

###### Gtk.TextTagTable::tag-added

Emitted every time a new tag is added in the `GtkTextTagTable`.

since: 4.0

###### Gtk.TextTagTable::tag-changed

Emitted every time a tag in the `GtkTextTagTable` changes.

since: 4.0

###### Gtk.TextTagTable::tag-removed

Emitted every time a tag is removed from the `GtkTextTagTable`.

since: 4.0

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0