Table of Contents

Class Annotation

Namespace
GtkSource
Assembly
GtkSource-5.dll
public class Annotation : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
Annotation
Implements
Inherited Members

Constructors

Annotation(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 Annotation(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Annotation(CreationData)

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

Parameters

data CreationData

Annotation(AnnotationHandle)

protected Annotation(AnnotationHandle handle)

Parameters

handle AnnotationHandle

Fields

DescriptionPropertyDefinition

public static readonly Property<string?, Annotation> DescriptionPropertyDefinition

Field Value

Property<string, Annotation>

IconPropertyDefinition

public static readonly Property<Icon, Annotation> IconPropertyDefinition

Field Value

Property<Icon, Annotation>

LinePropertyDefinition

public static readonly Property<uint, Annotation> LinePropertyDefinition

Field Value

Property<uint, Annotation>

StylePropertyDefinition

public static readonly Property<AnnotationStyle, Annotation> StylePropertyDefinition

Field Value

Property<AnnotationStyle, Annotation>

Properties

Description

public string? Description { get; }

Property Value

string

Icon

public Icon Icon { get; }

Property Value

Icon

Line

public uint Line { get; }

Property Value

uint

Style

public AnnotationStyle Style { get; }

Property Value

AnnotationStyle

Methods

GetDescription()

public string GetDescription()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetIcon()

public Icon? GetIcon()

Returns

Icon

GetLine()

public int GetLine()

Returns

int

GetStyle()

public AnnotationStyle GetStyle()

Returns

AnnotationStyle

New(string?, Icon?, int, AnnotationStyle)

public static Annotation New(string? description, Icon? icon, int line, AnnotationStyle style)

Parameters

description string
icon Icon
line int
style AnnotationStyle

Returns

Annotation

NewFromPointer(nint, bool)

Creates a new managed Annotation instance for a given pointer.

public static Annotation NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Annotation

NewWithProperties(ConstructArgument[])

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

public static Annotation NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Annotation