starts_tag


Description:

public bool starts_tag (TextTag? tag)

Returns true if tag is toggled on at exactly this point.

If tag is null, returns true if any tag is toggled on at this point.

Note that if this function returns true, it means that this is at the beginning of the tagged range, and that the character at this is inside the tagged range. In other words, unlike [method@Gtk.TextIter.ends_tag], if this function returns true, [method@Gtk.TextIter.has_tag] will also return true for the same parameters.

Parameters:

this

an iterator

tag

a `GtkTextTag`

Returns:

whether this is the start of a range tagged with tag