Table of Contents

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

constructArguments ConstructArgument[]

StyleScheme(CreationData)

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

Parameters

data CreationData

StyleScheme(StyleSchemeHandle)

protected StyleScheme(StyleSchemeHandle handle)

Parameters

handle StyleSchemeHandle

Fields

DescriptionPropertyDefinition

public static readonly Property<string?, StyleScheme> DescriptionPropertyDefinition

Field Value

Property<string, StyleScheme>

FilenamePropertyDefinition

public static readonly Property<string?, StyleScheme> FilenamePropertyDefinition

Field Value

Property<string, StyleScheme>

IdPropertyDefinition

public static readonly Property<string?, StyleScheme> IdPropertyDefinition

Field Value

Property<string, StyleScheme>

NamePropertyDefinition

public static readonly Property<string?, StyleScheme> NamePropertyDefinition

Field Value

Property<string, StyleScheme>

Properties

Description

public string? Description { get; }

Property Value

string

Filename

public string? Filename { get; }

Property Value

string

Id

public string? Id { get; }

Property Value

string

Name

public string? Name { get; }

Property Value

string

Methods

GetAuthors()

public string[]? GetAuthors()

Returns

string[]

GetDescription()

public string? GetDescription()

Returns

string

GetFilename()

public string? GetFilename()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetId()

public string GetId()

Returns

string

GetMetadata(string)

[Version("5.4")]
public string? GetMetadata(string name)

Parameters

name string

Returns

string

GetName()

public string GetName()

Returns

string

GetStyle(string)

public Style? GetStyle(string styleId)

Parameters

styleId string

Returns

Style

NewFromPointer(nint, bool)

Creates a new managed StyleScheme instance for a given pointer.

public static StyleScheme NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

StyleScheme

NewWithProperties(ConstructArgument[])

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

public static StyleScheme NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

StyleScheme