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
constructArgumentsConstructArgument[]
Annotation(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Annotation(CreationData data)
Parameters
dataCreationData
Annotation(AnnotationHandle)
protected Annotation(AnnotationHandle handle)
Parameters
handleAnnotationHandle
Fields
DescriptionPropertyDefinition
public static readonly Property<string?, Annotation> DescriptionPropertyDefinition
Field Value
IconPropertyDefinition
public static readonly Property<Icon, Annotation> IconPropertyDefinition
Field Value
LinePropertyDefinition
public static readonly Property<uint, Annotation> LinePropertyDefinition
Field Value
StylePropertyDefinition
public static readonly Property<AnnotationStyle, Annotation> StylePropertyDefinition
Field Value
Properties
Description
public string? Description { get; }
Property Value
Icon
public Icon Icon { get; }
Property Value
Line
public uint Line { get; }
Property Value
Style
public AnnotationStyle Style { get; }
Property Value
Methods
GetDescription()
public string GetDescription()
Returns
GetGType()
public static Type GetGType()
Returns
GetIcon()
public Icon? GetIcon()
Returns
GetLine()
public int GetLine()
Returns
GetStyle()
public AnnotationStyle GetStyle()
Returns
New(string?, Icon?, int, AnnotationStyle)
public static Annotation New(string? description, Icon? icon, int line, AnnotationStyle style)
Parameters
descriptionstringiconIconlineintstyleAnnotationStyle
Returns
NewFromPointer(nint, bool)
Creates a new managed Annotation instance for a given pointer.
public static Annotation NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Annotation and sets the properties specified by the construct arguments.
public static Annotation NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.