Gtk.TextBuffer.GetSlice Method
Returns the text from start to ,end.

Syntax

public string GetSlice (TextIter start, TextIter end, bool include_hidden_chars)

Parameters

start
the start of a range
end
the end of the range
include_hidden_chars
whether to include invisible text

Returns

a string containing the text from start to end

Remarks

Returns the text in the range from start to end. Excludes undisplayed text (text marked with tags that set the invisibility attribute) if include_hidden_chars is false. The returned string includes a 0xFFFC character whenever the buffer contains embedded images, so byte and character indexes into the returned string do correspond to byte and character indexes into the buffer. Contrast with TextBuffer.GetText(TextIter, TextIter, bool). Note that 0xFFFC can occur in normal text as well, so it is not a reliable indicator that a pixbuf or widget is in the buffer.

Requirements

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