Class StyleScheme
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class StyleScheme : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
StyleScheme
- Implements
- Inherited Members
Constructors
StyleScheme(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 StyleScheme(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
StyleScheme(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected StyleScheme(CreationData data)
Parameters
dataCreationData
StyleScheme(StyleSchemeHandle)
protected StyleScheme(StyleSchemeHandle handle)
Parameters
handleStyleSchemeHandle
Fields
DescriptionPropertyDefinition
public static readonly Property<string?, StyleScheme> DescriptionPropertyDefinition
Field Value
FilenamePropertyDefinition
public static readonly Property<string?, StyleScheme> FilenamePropertyDefinition
Field Value
IdPropertyDefinition
public static readonly Property<string?, StyleScheme> IdPropertyDefinition
Field Value
NamePropertyDefinition
public static readonly Property<string?, StyleScheme> NamePropertyDefinition
Field Value
Properties
Description
public string? Description { get; }
Property Value
Filename
public string? Filename { get; }
Property Value
Id
public string? Id { get; }
Property Value
Name
public string? Name { get; }
Property Value
Methods
GetAuthors()
public string[]? GetAuthors()
Returns
- string[]
GetDescription()
public string? GetDescription()
Returns
GetFilename()
public string? GetFilename()
Returns
GetGType()
public static Type GetGType()
Returns
GetId()
public string GetId()
Returns
GetMetadata(string)
[Version("5.4")]
public string? GetMetadata(string name)
Parameters
namestring
Returns
GetName()
public string GetName()
Returns
GetStyle(string)
public Style? GetStyle(string styleId)
Parameters
styleIdstring
Returns
NewFromPointer(nint, bool)
Creates a new managed StyleScheme instance for a given pointer.
public static StyleScheme NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new StyleScheme and sets the properties specified by the construct arguments.
public static StyleScheme NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.