Class Style
- Namespace
- GtkSource
- Assembly
- GtkSource-5.dll
public class Style : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Style
- Implements
- Inherited Members
Constructors
Style(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 Style(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Style(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Style(CreationData data)
Parameters
dataCreationData
Style(StyleHandle)
protected Style(StyleHandle handle)
Parameters
handleStyleHandle
Fields
BackgroundPropertyDefinition
public static readonly Property<string?, Style> BackgroundPropertyDefinition
Field Value
BackgroundSetPropertyDefinition
public static readonly Property<bool, Style> BackgroundSetPropertyDefinition
Field Value
BoldPropertyDefinition
public static readonly Property<bool, Style> BoldPropertyDefinition
Field Value
BoldSetPropertyDefinition
public static readonly Property<bool, Style> BoldSetPropertyDefinition
Field Value
ForegroundPropertyDefinition
public static readonly Property<string?, Style> ForegroundPropertyDefinition
Field Value
ForegroundSetPropertyDefinition
public static readonly Property<bool, Style> ForegroundSetPropertyDefinition
Field Value
ItalicPropertyDefinition
public static readonly Property<bool, Style> ItalicPropertyDefinition
Field Value
ItalicSetPropertyDefinition
public static readonly Property<bool, Style> ItalicSetPropertyDefinition
Field Value
LineBackgroundPropertyDefinition
public static readonly Property<string?, Style> LineBackgroundPropertyDefinition
Field Value
LineBackgroundSetPropertyDefinition
public static readonly Property<bool, Style> LineBackgroundSetPropertyDefinition
Field Value
PangoUnderlinePropertyDefinition
public static readonly Property<Underline, Style> PangoUnderlinePropertyDefinition
Field Value
ScalePropertyDefinition
public static readonly Property<string?, Style> ScalePropertyDefinition
Field Value
ScaleSetPropertyDefinition
public static readonly Property<bool, Style> ScaleSetPropertyDefinition
Field Value
StrikethroughPropertyDefinition
public static readonly Property<bool, Style> StrikethroughPropertyDefinition
Field Value
StrikethroughSetPropertyDefinition
public static readonly Property<bool, Style> StrikethroughSetPropertyDefinition
Field Value
UnderlineColorPropertyDefinition
public static readonly Property<string?, Style> UnderlineColorPropertyDefinition
Field Value
UnderlineColorSetPropertyDefinition
public static readonly Property<bool, Style> UnderlineColorSetPropertyDefinition
Field Value
UnderlineSetPropertyDefinition
public static readonly Property<bool, Style> UnderlineSetPropertyDefinition
Field Value
WeightPropertyDefinition
public static readonly Property<Weight, Style> WeightPropertyDefinition
Field Value
WeightSetPropertyDefinition
public static readonly Property<bool, Style> WeightSetPropertyDefinition
Field Value
Properties
Background
public string? Background { get; }
Property Value
BackgroundSet
public bool BackgroundSet { get; }
Property Value
Bold
public bool Bold { get; }
Property Value
BoldSet
public bool BoldSet { get; }
Property Value
Foreground
public string? Foreground { get; }
Property Value
ForegroundSet
public bool ForegroundSet { get; }
Property Value
Italic
public bool Italic { get; }
Property Value
ItalicSet
public bool ItalicSet { get; }
Property Value
LineBackground
public string? LineBackground { get; }
Property Value
LineBackgroundSet
public bool LineBackgroundSet { get; }
Property Value
PangoUnderline
public Underline PangoUnderline { get; }
Property Value
Scale
public string? Scale { get; }
Property Value
ScaleSet
public bool ScaleSet { get; }
Property Value
Strikethrough
public bool Strikethrough { get; }
Property Value
StrikethroughSet
public bool StrikethroughSet { get; }
Property Value
UnderlineColor
public string? UnderlineColor { get; }
Property Value
UnderlineColorSet
public bool UnderlineColorSet { get; }
Property Value
UnderlineSet
public bool UnderlineSet { get; }
Property Value
Weight
public Weight Weight { get; }
Property Value
WeightSet
public bool WeightSet { get; }
Property Value
Methods
Apply(TextTag)
public void Apply(TextTag tag)
Parameters
tagTextTag
Copy()
public Style Copy()
Returns
GetGType()
public static Type GetGType()
Returns
NewFromPointer(nint, bool)
Creates a new managed Style instance for a given pointer.
public static Style NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Style and sets the properties specified by the construct arguments.
public static Style NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.