Class LanguageManager
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class LanguageManager : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
LanguageManager
- Implements
- Inherited Members
Constructors
LanguageManager(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 LanguageManager(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
LanguageManager(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected LanguageManager(CreationData data)
Parameters
dataCreationData
LanguageManager(LanguageManagerHandle)
protected LanguageManager(LanguageManagerHandle handle)
Parameters
handleLanguageManagerHandle
Fields
LanguageIdsPropertyDefinition
public static readonly Property<string[], LanguageManager> LanguageIdsPropertyDefinition
Field Value
SearchPathPropertyDefinition
public static readonly Property<string[], LanguageManager> SearchPathPropertyDefinition
Field Value
Properties
LanguageIds
public string[] LanguageIds { get; }
Property Value
- string[]
SearchPath
public string[] SearchPath { get; set; }
Property Value
- string[]
Methods
AppendSearchPath(string)
[Version("5.4")]
public void AppendSearchPath(string path)
Parameters
pathstring
GetDefault()
public static LanguageManager GetDefault()
Returns
GetGType()
public static Type GetGType()
Returns
GetLanguage(string)
public Language? GetLanguage(string id)
Parameters
idstring
Returns
GetLanguageIds()
public string[]? GetLanguageIds()
Returns
- string[]
GetSearchPath()
public string[] GetSearchPath()
Returns
- string[]
GuessLanguage(string?, string?)
public Language? GuessLanguage(string? filename, string? contentType)
Parameters
Returns
New()
public static LanguageManager New()
Returns
NewFromPointer(nint, bool)
Creates a new managed LanguageManager instance for a given pointer.
public static LanguageManager NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new LanguageManager and sets the properties specified by the construct arguments.
public static LanguageManager NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PrependSearchPath(string)
[Version("5.4")]
public void PrependSearchPath(string path)
Parameters
pathstring
SetSearchPath(string[]?)
public void SetSearchPath(string[]? dirs)
Parameters
dirsstring[]