Class SnippetContext
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class SnippetContext : Object, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
SnippetContext
- Implements
- Inherited Members
Constructors
SnippetContext(params ConstructArgument[])
public SnippetContext(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
SnippetContext(SnippetContextHandle)
public SnippetContext(SnippetContextHandle handle)
Parameters
handle
SnippetContextHandle
Fields
ChangedSignal
Signal Descriptor for OnChanged.
public static readonly Signal<SnippetContext> ChangedSignal
Field Value
Methods
ClearVariables()
public void ClearVariables()
Expand(string)
public string Expand(string input)
Parameters
input
string
Returns
GetGType()
public static Type GetGType()
Returns
GetVariable(string)
public string? GetVariable(string key)
Parameters
key
string
Returns
New()
public static SnippetContext New()
Returns
SetConstant(string, string)
public void SetConstant(string key, string value)
Parameters
SetLinePrefix(string)
public void SetLinePrefix(string linePrefix)
Parameters
linePrefix
string
SetTabWidth(int)
public void SetTabWidth(int tabWidth)
Parameters
tabWidth
int
SetUseSpaces(bool)
public void SetUseSpaces(bool useSpaces)
Parameters
useSpaces
bool
SetVariable(string, string)
public void SetVariable(string key, string value)
Parameters
Events
OnChanged
public event SignalHandler<SnippetContext> OnChanged