Gtk.TextBuffer: Method Members

The methods of Gtk.TextBuffer are listed below. For a list of all members, see the TextBuffer Members list.

See Also: Inherited members from GLib.Object

Public Methods

AddMark(TextMark, TextIter)
Documentation for this section has not yet been entered.
AddSelectionClipboard(Clipboard)
Adds clipboard to the list of clipboards in which the selection contents of buffer are available.
ApplyTag(TextTag, TextIter, TextIter)
Fires the TextBuffer.ApplyTag events on buffer.
ApplyTag(string, TextIter, TextIter)
Fires the TextBuffer.TagApplied event on buffer. The default handler for the signal applies tag to the given range.
Backspace(ref TextIter, bool, bool) : bool
Documentation for this section has not yet been entered.
BeginUserAction()
Called to indicate that the buffer operations between here and a call to TextBuffer.EndUserAction() are part of a single user-visible operation.
Clear()
Clears the contents of the buffer
CopyClipboard(Clipboard)
Copies the buffer's selected text to the given Gtk.Clipboard.
CreateChildAnchor(ref TextIter) : TextChildAnchor
This is a convenience function which simply creates a child anchor with TextChildAnchor and inserts it into the buffer with TextBuffer.InsertChildAnchor(TextIter, TextChildAnchor).
CreateMark(string, TextIter, bool) : TextMark
Creates a mark at position where.
CutClipboard(Clipboard, bool)
Copies the currently-selected text to a clipboard, then deletes said text if it is editable.
Delete(ref TextIter, ref TextIter)
Deletes text between start and end.
Delete(TextIter, TextIter)
Delete text between two iterators.
DeleteInteractive(ref TextIter, ref TextIter, bool) : bool
Deletes all editable text in the given range.
DeleteMark(TextMark)
Deletes mark, so that it is no longer located anywhere in the buffer.
DeleteMark(string)
Deletes the mark named name; the mark must exist.
DeleteSelection(bool, bool) : bool
Deletes the currently-selected text
Deserialize(TextBuffer, Gdk.Atom, ref TextIter, byte[], ulong) : bool
Deserialize content.
DeserializeGetCanCreateTags(Gdk.Atom) : bool
Determines if tag creation is supported for a MIME type deserializer.
DeserializeSetCanCreateTags(Gdk.Atom, bool)
Enables or disables arbitrary tag creation.
EndUserAction()
Should be paired with a call to TextBuffer.BeginUserAction().
GetBounds(out TextIter, out TextIter)
Retrieves the first and last iterators in the buffer, i.e. the entire buffer.
GetIterAtChildAnchor(TextChildAnchor) : TextIter
Gets the location of the specific anchor.
GetIterAtLine(int) : TextIter
Gets the location of a particular line.
GetIterAtLineIndex(int, int) : TextIter
Obtains an iterator pointing to byte_index within the given line.
GetIterAtLineOffset(int, int) : TextIter
Gets the location of a specific point.
GetIterAtMark(TextMark) : TextIter
Gets the location of the specified mark.
GetIterAtOffset(int) : TextIter
Returns the location at a particular character offset
GetMark(string) : TextMark
Returns the mark named name in buffer buffer, or null if no such mark exists in the buffer.
GetSelectionBounds(out TextIter, out TextIter) : bool
Returns true if some text is selected
GetSlice(TextIter, TextIter, bool) : string
Returns the text from start to ,end.
GetText(TextIter, TextIter, bool) : string
Returns the text from a specified range
Insert(ref TextIter, string)
Insert text at a specific point
Insert(TextIter, string)
Inserts text.
InsertAtCursor(string)
Insert text into the current cursor position
InsertChildAnchor(ref TextIter, TextChildAnchor)
Inserts a child widget anchor into the text buffer.
InsertInteractive(ref TextIter, string, bool) : bool
Insert text if the cursor is at an editable point in the buffer
InsertInteractiveAtCursor(string, bool) : bool
Insert text at cursor position if the location is editable
InsertPixbuf(ref TextIter, Gdk.Pixbuf)
Inserts an image into the text buffer at iter.
InsertRange(ref TextIter, TextIter, TextIter)
Copies text, tags, and pixbufs between start and end and inserts the copy at iter.
InsertRange(TextIter, TextIter, TextIter)
Inserts a range of text.
InsertRangeInteractive(ref TextIter, TextIter, TextIter, bool) : bool
Same as TextBuffer.InsertRange(TextIter, TextIter, TextIter), but does nothing if the insertion point is not editable.
InsertWithTags(ref TextIter, string, params TextTag[])
Inserts text into buffer at iter, applying the list of tags to the newly-inserted text.
InsertWithTags(TextIter, string, params TextTag[])
Inserts text with tag information.
InsertWithTagsByName(ref TextIter, string, params string[])
Inserts text into buffer at iter, applying the list of tags with names tagnamess to the newly-inserted text.
MoveMark(TextMark, TextIter)
Moves mark to the new location where.
MoveMark(string, TextIter)
Moves the mark named name (which must exist) to location where.
PasteClipboard(Clipboard)
Pastes the contents of a clipboard at the insertion point.
PasteClipboard(Clipboard, ref TextIter, bool)
Pastes the contents of a clipboard at the insertion point, or at override_location.
PlaceCursor(TextIter)
Moves the "insert" and "selection_bound" marks simultaneously.
RegisterDeserializeFormat(string, TextBufferDeserializeFunc) : Gdk.Atom
Registers a deserialization handler for a given MIME type.
RegisterDeserializeTagset(string) : Gdk.Atom
Registers TextBuffer's internal serialization format.
RegisterSerializeFormat(string, TextBufferSerializeFunc) : Gdk.Atom
Registers a serialization formatter for a given MIME type.
RegisterSerializeTagset(string) : Gdk.Atom
Registers TextBuffer's internal serialization format.
RemoveAllTags(TextIter, TextIter)
Removes all tags in the range between start and end.
RemoveSelectionClipboard(Clipboard)
Removes a Gtk.Clipboard added with TextBuffer.AddSelectionClipboard().
RemoveTag(TextTag, TextIter, TextIter)
Fires the TextBuffer.RemoveTag events and removes all occurrences of tag from the given range
RemoveTag(string, TextIter, TextIter)
Calls TextTagTable.Lookup(string) on the buffer's tag table to get a Gtk.TextTag, then calls TextBuffer.RemoveTag(TextTag, TextIter, TextIter)
SelectRange(TextIter, TextIter)
This function moves the insert and selection_bound marks simultaneously.
Serialize(TextBuffer, Gdk.Atom, TextIter, TextIter) : byte[]
Serializes a range of text.
SetText(string)
Set the contents of the buffer
UnregisterDeserializeFormat(Gdk.Atom)
Removes a registered MIME type handler from the buffer.
UnregisterSerializeFormat(Gdk.Atom)
Removes a Serialization format from the registry.

Protected Methods

OnChanged()
Default handler for the TextBuffer.Changed event.
OnChildAnchorInserted(TextIter, TextChildAnchor)
Default handler for the TextBuffer.ChildAnchorInserted event.
OnDeleteRange(TextIter, TextIter)
Default handler for the TextBuffer.DeleteRange event.
OnInsertText(TextIter, string)
Default handler for the TextBuffer.InsertText event.
OnMarkDeleted(TextMark)
Default handler for the TextBuffer.MarkDeleted event.
OnMarkSet(TextIter, TextMark)
Default handler for the TextBuffer.MarkSet event.
OnModifiedChanged()
Default handler for the TextBuffer.ModifiedChanged event.
OnPixbufInserted(TextIter, Gdk.Pixbuf)
Default handler for the TextBuffer.PixbufInserted event.
OnTagApplied(TextTag, TextIter, TextIter)
Default handler for the TextBuffer.TagApplied event.
OnTagRemoved(TextTag, TextIter, TextIter)
Default handler for the TextBuffer.TagRemoved event.
OnUserActionBegun()
Default handler for the TextBuffer.UserActionBegun event.
OnUserActionEnded()
Default handler for the TextBuffer.UserActionEnded event.