Class TextBuffer
public class TextBuffer
- Inheritance
-
TextBuffer
- Inherited Members
Methods
AddMark(IntPtr, IntPtr, TextIterHandle)
Calls native method gtk_text_buffer_add_mark.
public static extern void AddMark(IntPtr buffer, IntPtr mark, TextIterHandle where)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
mark
IntPtrTransfer ownership: None Nullable: False
where
TextIterHandleTransfer ownership: None Nullable: False
AddSelectionClipboard(IntPtr, IntPtr)
Calls native method gtk_text_buffer_add_selection_clipboard.
public static extern void AddSelectionClipboard(IntPtr buffer, IntPtr clipboard)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
clipboard
IntPtrTransfer ownership: None Nullable: False
ApplyTag(IntPtr, IntPtr, TextIterHandle, TextIterHandle)
Calls native method gtk_text_buffer_apply_tag.
public static extern void ApplyTag(IntPtr buffer, IntPtr tag, TextIterHandle start, TextIterHandle end)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
tag
IntPtrTransfer ownership: None Nullable: False
start
TextIterHandleTransfer ownership: None Nullable: False
end
TextIterHandleTransfer ownership: None Nullable: False
ApplyTagByName(IntPtr, NonNullableUtf8StringHandle, TextIterHandle, TextIterHandle)
Calls native method gtk_text_buffer_apply_tag_by_name.
public static extern void ApplyTagByName(IntPtr buffer, NonNullableUtf8StringHandle name, TextIterHandle start, TextIterHandle end)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
start
TextIterHandleTransfer ownership: None Nullable: False
end
TextIterHandleTransfer ownership: None Nullable: False
Backspace(IntPtr, TextIterHandle, bool, bool)
Calls native method gtk_text_buffer_backspace.
public static extern bool Backspace(IntPtr buffer, TextIterHandle iter, bool interactive, bool defaultEditable)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
iter
TextIterHandleTransfer ownership: None Nullable: False
interactive
boolTransfer ownership: None Nullable: False
defaultEditable
boolTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
BeginIrreversibleAction(IntPtr)
Calls native method gtk_text_buffer_begin_irreversible_action.
public static extern void BeginIrreversibleAction(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
BeginUserAction(IntPtr)
Calls native method gtk_text_buffer_begin_user_action.
public static extern void BeginUserAction(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
CopyClipboard(IntPtr, IntPtr)
Calls native method gtk_text_buffer_copy_clipboard.
public static extern void CopyClipboard(IntPtr buffer, IntPtr clipboard)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
clipboard
IntPtrTransfer ownership: None Nullable: False
CreateChildAnchor(IntPtr, TextIterHandle)
Calls native method gtk_text_buffer_create_child_anchor.
public static extern IntPtr CreateChildAnchor(IntPtr buffer, TextIterHandle iter)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
iter
TextIterHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
CreateMark(IntPtr, NullableUtf8StringHandle, TextIterHandle, bool)
Calls native method gtk_text_buffer_create_mark.
public static extern IntPtr CreateMark(IntPtr buffer, NullableUtf8StringHandle markName, TextIterHandle where, bool leftGravity)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
markName
NullableUtf8StringHandleTransfer ownership: None Nullable: True
where
TextIterHandleTransfer ownership: None Nullable: False
leftGravity
boolTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
CutClipboard(IntPtr, IntPtr, bool)
Calls native method gtk_text_buffer_cut_clipboard.
public static extern void CutClipboard(IntPtr buffer, IntPtr clipboard, bool defaultEditable)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
clipboard
IntPtrTransfer ownership: None Nullable: False
defaultEditable
boolTransfer ownership: None Nullable: False
Delete(IntPtr, TextIterHandle, TextIterHandle)
Calls native method gtk_text_buffer_delete.
public static extern void Delete(IntPtr buffer, TextIterHandle start, TextIterHandle end)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
start
TextIterHandleTransfer ownership: None Nullable: False
end
TextIterHandleTransfer ownership: None Nullable: False
DeleteInteractive(IntPtr, TextIterHandle, TextIterHandle, bool)
Calls native method gtk_text_buffer_delete_interactive.
public static extern bool DeleteInteractive(IntPtr buffer, TextIterHandle startIter, TextIterHandle endIter, bool defaultEditable)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
startIter
TextIterHandleTransfer ownership: None Nullable: False
endIter
TextIterHandleTransfer ownership: None Nullable: False
defaultEditable
boolTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
DeleteMark(IntPtr, IntPtr)
Calls native method gtk_text_buffer_delete_mark.
public static extern void DeleteMark(IntPtr buffer, IntPtr mark)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
mark
IntPtrTransfer ownership: None Nullable: False
DeleteMarkByName(IntPtr, NonNullableUtf8StringHandle)
Calls native method gtk_text_buffer_delete_mark_by_name.
public static extern void DeleteMarkByName(IntPtr buffer, NonNullableUtf8StringHandle name)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
DeleteSelection(IntPtr, bool, bool)
Calls native method gtk_text_buffer_delete_selection.
public static extern bool DeleteSelection(IntPtr buffer, bool interactive, bool defaultEditable)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
interactive
boolTransfer ownership: None Nullable: False
defaultEditable
boolTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
EndIrreversibleAction(IntPtr)
Calls native method gtk_text_buffer_end_irreversible_action.
public static extern void EndIrreversibleAction(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
EndUserAction(IntPtr)
Calls native method gtk_text_buffer_end_user_action.
public static extern void EndUserAction(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
GetCanRedo(IntPtr)
Calls native method gtk_text_buffer_get_can_redo.
public static extern bool GetCanRedo(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetCanUndo(IntPtr)
Calls native method gtk_text_buffer_get_can_undo.
public static extern bool GetCanUndo(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetCharCount(IntPtr)
Calls native method gtk_text_buffer_get_char_count.
public static extern int GetCharCount(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetEnableUndo(IntPtr)
Calls native method gtk_text_buffer_get_enable_undo.
public static extern bool GetEnableUndo(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetGType()
Calls native function gtk_text_buffer_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetHasSelection(IntPtr)
Calls native method gtk_text_buffer_get_has_selection.
public static extern bool GetHasSelection(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetInsert(IntPtr)
Calls native method gtk_text_buffer_get_insert.
public static extern IntPtr GetInsert(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetLineCount(IntPtr)
Calls native method gtk_text_buffer_get_line_count.
public static extern int GetLineCount(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- int
Transfer ownership: None Nullable: False
GetMark(IntPtr, NonNullableUtf8StringHandle)
Calls native method gtk_text_buffer_get_mark.
public static extern IntPtr GetMark(IntPtr buffer, NonNullableUtf8StringHandle name)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetMaxUndoLevels(IntPtr)
Calls native method gtk_text_buffer_get_max_undo_levels.
public static extern uint GetMaxUndoLevels(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
GetModified(IntPtr)
Calls native method gtk_text_buffer_get_modified.
public static extern bool GetModified(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetSelectionBound(IntPtr)
Calls native method gtk_text_buffer_get_selection_bound.
public static extern IntPtr GetSelectionBound(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetSelectionContent(IntPtr)
Calls native method gtk_text_buffer_get_selection_content.
public static extern IntPtr GetSelectionContent(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: False
GetSlice(IntPtr, TextIterHandle, TextIterHandle, bool)
Calls native method gtk_text_buffer_get_slice.
public static extern NonNullableUtf8StringOwnedHandle GetSlice(IntPtr buffer, TextIterHandle start, TextIterHandle end, bool includeHiddenChars)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
start
TextIterHandleTransfer ownership: None Nullable: False
end
TextIterHandleTransfer ownership: None Nullable: False
includeHiddenChars
boolTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
GetTagTable(IntPtr)
Calls native method gtk_text_buffer_get_tag_table.
public static extern IntPtr GetTagTable(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: False
GetText(IntPtr, TextIterHandle, TextIterHandle, bool)
Calls native method gtk_text_buffer_get_text.
public static extern NonNullableUtf8StringOwnedHandle GetText(IntPtr buffer, TextIterHandle start, TextIterHandle end, bool includeHiddenChars)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
start
TextIterHandleTransfer ownership: None Nullable: False
end
TextIterHandleTransfer ownership: None Nullable: False
includeHiddenChars
boolTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
Insert(IntPtr, TextIterHandle, NonNullableUtf8StringHandle, int)
Calls native method gtk_text_buffer_insert.
public static extern void Insert(IntPtr buffer, TextIterHandle iter, NonNullableUtf8StringHandle text, int len)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
iter
TextIterHandleTransfer ownership: None Nullable: False
text
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
len
intTransfer ownership: None Nullable: False
InsertAtCursor(IntPtr, NonNullableUtf8StringHandle, int)
Calls native method gtk_text_buffer_insert_at_cursor.
public static extern void InsertAtCursor(IntPtr buffer, NonNullableUtf8StringHandle text, int len)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
text
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
len
intTransfer ownership: None Nullable: False
InsertChildAnchor(IntPtr, TextIterHandle, IntPtr)
Calls native method gtk_text_buffer_insert_child_anchor.
public static extern void InsertChildAnchor(IntPtr buffer, TextIterHandle iter, IntPtr anchor)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
iter
TextIterHandleTransfer ownership: None Nullable: False
anchor
IntPtrTransfer ownership: None Nullable: False
InsertInteractive(IntPtr, TextIterHandle, NonNullableUtf8StringHandle, int, bool)
Calls native method gtk_text_buffer_insert_interactive.
public static extern bool InsertInteractive(IntPtr buffer, TextIterHandle iter, NonNullableUtf8StringHandle text, int len, bool defaultEditable)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
iter
TextIterHandleTransfer ownership: None Nullable: False
text
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
len
intTransfer ownership: None Nullable: False
defaultEditable
boolTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
InsertInteractiveAtCursor(IntPtr, NonNullableUtf8StringHandle, int, bool)
Calls native method gtk_text_buffer_insert_interactive_at_cursor.
public static extern bool InsertInteractiveAtCursor(IntPtr buffer, NonNullableUtf8StringHandle text, int len, bool defaultEditable)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
text
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
len
intTransfer ownership: None Nullable: False
defaultEditable
boolTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
InsertMarkup(IntPtr, TextIterHandle, NonNullableUtf8StringHandle, int)
Calls native method gtk_text_buffer_insert_markup.
public static extern void InsertMarkup(IntPtr buffer, TextIterHandle iter, NonNullableUtf8StringHandle markup, int len)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
iter
TextIterHandleTransfer ownership: None Nullable: False
markup
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
len
intTransfer ownership: None Nullable: False
InsertPaintable(IntPtr, TextIterHandle, IntPtr)
Calls native method gtk_text_buffer_insert_paintable.
public static extern void InsertPaintable(IntPtr buffer, TextIterHandle iter, IntPtr paintable)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
iter
TextIterHandleTransfer ownership: None Nullable: False
paintable
IntPtrTransfer ownership: None Nullable: False
InsertRange(IntPtr, TextIterHandle, TextIterHandle, TextIterHandle)
Calls native method gtk_text_buffer_insert_range.
public static extern void InsertRange(IntPtr buffer, TextIterHandle iter, TextIterHandle start, TextIterHandle end)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
iter
TextIterHandleTransfer ownership: None Nullable: False
start
TextIterHandleTransfer ownership: None Nullable: False
end
TextIterHandleTransfer ownership: None Nullable: False
InsertRangeInteractive(IntPtr, TextIterHandle, TextIterHandle, TextIterHandle, bool)
Calls native method gtk_text_buffer_insert_range_interactive.
public static extern bool InsertRangeInteractive(IntPtr buffer, TextIterHandle iter, TextIterHandle start, TextIterHandle end, bool defaultEditable)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
iter
TextIterHandleTransfer ownership: None Nullable: False
start
TextIterHandleTransfer ownership: None Nullable: False
end
TextIterHandleTransfer ownership: None Nullable: False
defaultEditable
boolTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
MoveMark(IntPtr, IntPtr, TextIterHandle)
Calls native method gtk_text_buffer_move_mark.
public static extern void MoveMark(IntPtr buffer, IntPtr mark, TextIterHandle where)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
mark
IntPtrTransfer ownership: None Nullable: False
where
TextIterHandleTransfer ownership: None Nullable: False
MoveMarkByName(IntPtr, NonNullableUtf8StringHandle, TextIterHandle)
Calls native method gtk_text_buffer_move_mark_by_name.
public static extern void MoveMarkByName(IntPtr buffer, NonNullableUtf8StringHandle name, TextIterHandle where)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
where
TextIterHandleTransfer ownership: None Nullable: False
New(IntPtr)
Calls native constructor gtk_text_buffer_new.
public static extern IntPtr New(IntPtr table)
Parameters
table
IntPtrTransfer ownership: None Nullable: True
Returns
- IntPtr
Transfer ownership: Full Nullable: False
PasteClipboard(IntPtr, IntPtr, TextIterHandle, bool)
Calls native method gtk_text_buffer_paste_clipboard.
public static extern void PasteClipboard(IntPtr buffer, IntPtr clipboard, TextIterHandle overrideLocation, bool defaultEditable)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
clipboard
IntPtrTransfer ownership: None Nullable: False
overrideLocation
TextIterHandleTransfer ownership: None Nullable: True
defaultEditable
boolTransfer ownership: None Nullable: False
PlaceCursor(IntPtr, TextIterHandle)
Calls native method gtk_text_buffer_place_cursor.
public static extern void PlaceCursor(IntPtr buffer, TextIterHandle where)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
where
TextIterHandleTransfer ownership: None Nullable: False
Redo(IntPtr)
Calls native method gtk_text_buffer_redo.
public static extern void Redo(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
RemoveAllTags(IntPtr, TextIterHandle, TextIterHandle)
Calls native method gtk_text_buffer_remove_all_tags.
public static extern void RemoveAllTags(IntPtr buffer, TextIterHandle start, TextIterHandle end)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
start
TextIterHandleTransfer ownership: None Nullable: False
end
TextIterHandleTransfer ownership: None Nullable: False
RemoveSelectionClipboard(IntPtr, IntPtr)
Calls native method gtk_text_buffer_remove_selection_clipboard.
public static extern void RemoveSelectionClipboard(IntPtr buffer, IntPtr clipboard)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
clipboard
IntPtrTransfer ownership: None Nullable: False
RemoveTag(IntPtr, IntPtr, TextIterHandle, TextIterHandle)
Calls native method gtk_text_buffer_remove_tag.
public static extern void RemoveTag(IntPtr buffer, IntPtr tag, TextIterHandle start, TextIterHandle end)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
tag
IntPtrTransfer ownership: None Nullable: False
start
TextIterHandleTransfer ownership: None Nullable: False
end
TextIterHandleTransfer ownership: None Nullable: False
RemoveTagByName(IntPtr, NonNullableUtf8StringHandle, TextIterHandle, TextIterHandle)
Calls native method gtk_text_buffer_remove_tag_by_name.
public static extern void RemoveTagByName(IntPtr buffer, NonNullableUtf8StringHandle name, TextIterHandle start, TextIterHandle end)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
start
TextIterHandleTransfer ownership: None Nullable: False
end
TextIterHandleTransfer ownership: None Nullable: False
SelectRange(IntPtr, TextIterHandle, TextIterHandle)
Calls native method gtk_text_buffer_select_range.
public static extern void SelectRange(IntPtr buffer, TextIterHandle ins, TextIterHandle bound)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
ins
TextIterHandleTransfer ownership: None Nullable: False
bound
TextIterHandleTransfer ownership: None Nullable: False
SetEnableUndo(IntPtr, bool)
Calls native method gtk_text_buffer_set_enable_undo.
public static extern void SetEnableUndo(IntPtr buffer, bool enableUndo)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
enableUndo
boolTransfer ownership: None Nullable: False
SetMaxUndoLevels(IntPtr, uint)
Calls native method gtk_text_buffer_set_max_undo_levels.
public static extern void SetMaxUndoLevels(IntPtr buffer, uint maxUndoLevels)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
maxUndoLevels
uintTransfer ownership: None Nullable: False
SetModified(IntPtr, bool)
Calls native method gtk_text_buffer_set_modified.
public static extern void SetModified(IntPtr buffer, bool setting)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
setting
boolTransfer ownership: None Nullable: False
SetText(IntPtr, NonNullableUtf8StringHandle, int)
Calls native method gtk_text_buffer_set_text.
public static extern void SetText(IntPtr buffer, NonNullableUtf8StringHandle text, int len)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False
text
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
len
intTransfer ownership: None Nullable: False
Undo(IntPtr)
Calls native method gtk_text_buffer_undo.
public static extern void Undo(IntPtr buffer)
Parameters
buffer
IntPtrTransfer ownership: None Nullable: False