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
constructArgumentsConstructArgument[]
SnippetContext(SnippetContextHandle)
public SnippetContext(SnippetContextHandle handle)
Parameters
handleSnippetContextHandle
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
inputstring
Returns
GetGType()
public static Type GetGType()
Returns
GetVariable(string)
public string? GetVariable(string key)
Parameters
keystring
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
linePrefixstring
SetTabWidth(int)
public void SetTabWidth(int tabWidth)
Parameters
tabWidthint
SetUseSpaces(bool)
public void SetUseSpaces(bool useSpaces)
Parameters
useSpacesbool
SetVariable(string, string)
public void SetVariable(string key, string value)
Parameters
Events
OnChanged
public event SignalHandler<SnippetContext> OnChanged