Class Language
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class Language : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Language
- Implements
- Inherited Members
Constructors
Language(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 Language(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Language(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Language(CreationData data)
Parameters
dataCreationData
Language(LanguageHandle)
protected Language(LanguageHandle handle)
Parameters
handleLanguageHandle
Fields
HiddenPropertyDefinition
public static readonly Property<bool, Language> HiddenPropertyDefinition
Field Value
IdPropertyDefinition
public static readonly Property<string?, Language> IdPropertyDefinition
Field Value
NamePropertyDefinition
public static readonly Property<string?, Language> NamePropertyDefinition
Field Value
SectionPropertyDefinition
public static readonly Property<string?, Language> SectionPropertyDefinition
Field Value
Properties
Hidden
public bool Hidden { get; }
Property Value
Id
public string? Id { get; }
Property Value
Name
public string? Name { get; }
Property Value
Section
public string? Section { get; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
GetGlobs()
public string[]? GetGlobs()
Returns
- string[]
GetHidden()
public bool GetHidden()
Returns
GetId()
public string GetId()
Returns
GetMetadata(string)
public string? GetMetadata(string name)
Parameters
namestring
Returns
GetMimeTypes()
public string[]? GetMimeTypes()
Returns
- string[]
GetName()
public string GetName()
Returns
GetSection()
public string GetSection()
Returns
GetStyleFallback(string)
public string? GetStyleFallback(string styleId)
Parameters
styleIdstring
Returns
GetStyleIds()
public string[]? GetStyleIds()
Returns
- string[]
GetStyleName(string)
public string? GetStyleName(string styleId)
Parameters
styleIdstring
Returns
NewFromPointer(nint, bool)
Creates a new managed Language instance for a given pointer.
public static Language NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Language and sets the properties specified by the construct arguments.
public static Language NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.