Table of Contents

Class SnippetContext

Namespace
GtkSource
Assembly
GtkSource-5.dll
public class SnippetContext : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
SnippetContext
Implements
Inherited Members

Constructors

SnippetContext(bool, params ConstructArgument[])

protected SnippetContext(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

SnippetContext(IntPtr, bool)

protected SnippetContext(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ChangedSignal

Signal Descriptor for OnChanged.

public static readonly Signal<SnippetContext> ChangedSignal

Field Value

Signal<SnippetContext>

Methods

ClearVariables()

public void ClearVariables()

Expand(string)

public string Expand(string input)

Parameters

input string

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetVariable(string)

public string? GetVariable(string key)

Parameters

key string

Returns

string

New()

public static SnippetContext New()

Returns

SnippetContext

SetConstant(string, string)

public void SetConstant(string key, string value)

Parameters

key string
value string

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

key string
value string

Events

OnChanged

public event SignalHandler<SnippetContext> OnChanged

Event Type

SignalHandler<SnippetContext>