Table of Contents

Class SnippetManager

Namespace
GtkSource
Assembly
GtkSource-5.dll
public class SnippetManager : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
SnippetManager
Implements
Inherited Members

Constructors

SnippetManager(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public SnippetManager(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

SnippetManager(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SnippetManager(CreationData data)

Parameters

data CreationData

SnippetManager(SnippetManagerHandle)

protected SnippetManager(SnippetManagerHandle handle)

Parameters

handle SnippetManagerHandle

Fields

SearchPathPropertyDefinition

public static readonly Property<string[], SnippetManager> SearchPathPropertyDefinition

Field Value

Property<string[], SnippetManager>

Properties

SearchPath

public string[] SearchPath { get; set; }

Property Value

string[]

Methods

GetDefault()

public static SnippetManager GetDefault()

Returns

SnippetManager

GetGType()

public static Type GetGType()

Returns

Type

GetSearchPath()

public string[] GetSearchPath()

Returns

string[]

GetSnippet(string?, string?, string)

public Snippet? GetSnippet(string? group, string? languageId, string trigger)

Parameters

group string
languageId string
trigger string

Returns

Snippet

ListAll()

[Version("5.6")]
public ListModel ListAll()

Returns

ListModel

ListGroups()

public string[] ListGroups()

Returns

string[]

ListMatching(string?, string?, string?)

public ListModel ListMatching(string? group, string? languageId, string? triggerPrefix)

Parameters

group string
languageId string
triggerPrefix string

Returns

ListModel

NewFromPointer(nint, bool)

Creates a new managed SnippetManager instance for a given pointer.

public static SnippetManager NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

SnippetManager

NewWithProperties(ConstructArgument[])

Creates a new SnippetManager and sets the properties specified by the construct arguments.

public static SnippetManager NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

SnippetManager

SetSearchPath(string[]?)

public void SetSearchPath(string[]? dirs)

Parameters

dirs string[]