Gtk.TextBuffer.InsertChildAnchor Method
Inserts a child widget anchor into the text buffer.

Syntax

public void InsertChildAnchor (ref TextIter iter, TextChildAnchor anchor)

Parameters

iter
location to insert the anchor
anchor
a Gtk.TextChildAnchor.

Remarks

Inserts a child widget anchor into the text buffer at iter. The anchor will be counted as one character in character counts, and when obtaining the buffer contents as a string, will be represented by the Unicode "object replacement character" 0xFFFC. Note that the "slice" variants for obtaining portions of the buffer as a string include this character for pixbufs, but the "text" variants do not. e.g. see TextBuffer.GetSlice(TextIter, TextIter, bool) and TextBuffer.GetText(TextIter, TextIter, bool)). Consider TextBuffer.CreateChildAnchor(TextIter) as a more convenient alternative to this function. The buffer will add a reference to the anchor, so you can unref it after insertion.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)
Since: Gtk# 2.4