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
constructArgumentsConstructArgument[]
SnippetManager(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SnippetManager(CreationData data)
Parameters
dataCreationData
SnippetManager(SnippetManagerHandle)
protected SnippetManager(SnippetManagerHandle handle)
Parameters
handleSnippetManagerHandle
Fields
SearchPathPropertyDefinition
public static readonly Property<string[], SnippetManager> SearchPathPropertyDefinition
Field Value
Properties
SearchPath
public string[] SearchPath { get; set; }
Property Value
- string[]
Methods
GetDefault()
public static SnippetManager GetDefault()
Returns
GetGType()
public static Type GetGType()
Returns
GetSearchPath()
public string[] GetSearchPath()
Returns
- string[]
GetSnippet(string?, string?, string)
public Snippet? GetSnippet(string? group, string? languageId, string trigger)
Parameters
Returns
ListAll()
[Version("5.6")]
public ListModel ListAll()
Returns
ListGroups()
public string[] ListGroups()
Returns
- string[]
ListMatching(string?, string?, string?)
public ListModel ListMatching(string? group, string? languageId, string? triggerPrefix)
Parameters
Returns
NewFromPointer(nint, bool)
Creates a new managed SnippetManager instance for a given pointer.
public static SnippetManager NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new SnippetManager and sets the properties specified by the construct arguments.
public static SnippetManager NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetSearchPath(string[]?)
public void SetSearchPath(string[]? dirs)
Parameters
dirsstring[]