Class Buffer
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class Buffer : TextBuffer, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
Buffer
- Implements
- Inherited Members
Constructors
Buffer(bool, params ConstructArgument[])
protected Buffer(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
boolconstructArguments
ConstructArgument[]
Buffer(IntPtr, bool)
protected Buffer(IntPtr ptr, bool ownedRef)
Parameters
Fields
BracketMatchedSignal
Signal Descriptor for OnBracketMatched.
public static readonly Signal<Buffer, Buffer.BracketMatchedSignalArgs> BracketMatchedSignal
Field Value
CursorMovedSignal
Signal Descriptor for OnCursorMoved.
public static readonly Signal<Buffer> CursorMovedSignal
Field Value
HighlightMatchingBracketsPropertyDefinition
public static readonly Property<bool, Buffer> HighlightMatchingBracketsPropertyDefinition
Field Value
HighlightSyntaxPropertyDefinition
public static readonly Property<bool, Buffer> HighlightSyntaxPropertyDefinition
Field Value
HighlightUpdatedSignal
Signal Descriptor for OnHighlightUpdated.
public static readonly Signal<Buffer, Buffer.HighlightUpdatedSignalArgs> HighlightUpdatedSignal
Field Value
ImplicitTrailingNewlinePropertyDefinition
public static readonly Property<bool, Buffer> ImplicitTrailingNewlinePropertyDefinition
Field Value
LanguagePropertyDefinition
public static readonly Property<Language?, Buffer> LanguagePropertyDefinition
Field Value
LoadingPropertyDefinition
public static readonly Property<bool, Buffer> LoadingPropertyDefinition
Field Value
SourceMarkUpdatedSignal
Signal Descriptor for OnSourceMarkUpdated.
public static readonly Signal<Buffer, Buffer.SourceMarkUpdatedSignalArgs> SourceMarkUpdatedSignal
Field Value
StyleSchemePropertyDefinition
public static readonly Property<StyleScheme?, Buffer> StyleSchemePropertyDefinition
Field Value
Properties
HighlightMatchingBrackets
public bool HighlightMatchingBrackets { get; set; }
Property Value
HighlightSyntax
public bool HighlightSyntax { get; set; }
Property Value
ImplicitTrailingNewline
public bool ImplicitTrailingNewline { get; set; }
Property Value
Language
public Language? Language { get; set; }
Property Value
Loading
public bool Loading { get; }
Property Value
StyleScheme
public StyleScheme? StyleScheme { get; set; }
Property Value
Methods
ChangeCase(ChangeCaseType, TextIter, TextIter)
public void ChangeCase(ChangeCaseType caseType, TextIter start, TextIter end)
Parameters
caseType
ChangeCaseTypestart
TextIterend
TextIter
CreateSourceMark(string?, string, TextIter)
public Mark CreateSourceMark(string? name, string category, TextIter where)
Parameters
Returns
EnsureHighlight(TextIter, TextIter)
public void EnsureHighlight(TextIter start, TextIter end)
Parameters
GetContextClassesAtIter(TextIter)
public string[] GetContextClassesAtIter(TextIter iter)
Parameters
iter
TextIter
Returns
- string[]
GetGType()
public static Type GetGType()
Returns
GetHighlightMatchingBrackets()
public bool GetHighlightMatchingBrackets()
Returns
GetHighlightSyntax()
public bool GetHighlightSyntax()
Returns
GetImplicitTrailingNewline()
public bool GetImplicitTrailingNewline()
Returns
GetLanguage()
public Language? GetLanguage()
Returns
GetLoading()
public bool GetLoading()
Returns
GetStyleScheme()
public StyleScheme? GetStyleScheme()
Returns
IterHasContextClass(TextIter, string)
public bool IterHasContextClass(TextIter iter, string contextClass)
Parameters
Returns
JoinLines(TextIter, TextIter)
public void JoinLines(TextIter start, TextIter end)
Parameters
New(TextTagTable?)
public static Buffer New(TextTagTable? table)
Parameters
table
TextTagTable
Returns
NewWithLanguage(Language)
public static Buffer NewWithLanguage(Language language)
Parameters
language
Language
Returns
RemoveSourceMarks(TextIter, TextIter, string?)
public void RemoveSourceMarks(TextIter start, TextIter end, string? category)
Parameters
SetHighlightMatchingBrackets(bool)
public void SetHighlightMatchingBrackets(bool highlight)
Parameters
highlight
bool
SetHighlightSyntax(bool)
public void SetHighlightSyntax(bool highlight)
Parameters
highlight
bool
SetImplicitTrailingNewline(bool)
public void SetImplicitTrailingNewline(bool implicitTrailingNewline)
Parameters
implicitTrailingNewline
bool
SetLanguage(Language?)
public void SetLanguage(Language? language)
Parameters
language
Language
SetStyleScheme(StyleScheme?)
public void SetStyleScheme(StyleScheme? scheme)
Parameters
scheme
StyleScheme
SortLines(TextIter, TextIter, SortFlags, int)
public void SortLines(TextIter start, TextIter end, SortFlags flags, int column)
Parameters
Events
OnBracketMatched
public event SignalHandler<Buffer, Buffer.BracketMatchedSignalArgs> OnBracketMatched
Event Type
OnCursorMoved
public event SignalHandler<Buffer> OnCursorMoved
Event Type
OnHighlightUpdated
public event SignalHandler<Buffer, Buffer.HighlightUpdatedSignalArgs> OnHighlightUpdated
Event Type
OnSourceMarkUpdated
public event SignalHandler<Buffer, Buffer.SourceMarkUpdatedSignalArgs> OnSourceMarkUpdated