Class ChartAnnotation
Namespace: VelloSharp.ChartEngine.Annotations
Assembly: VelloSharp.ChartEngine.dll
Base type for chart annotations rendered on top of chart panes.
public abstract record ChartAnnotation : IEquatable<ChartAnnotation>
Inheritance
Derived
CalloutAnnotation, GradientZoneAnnotation, HorizontalLineAnnotation, TimeRangeAnnotation, ValueZoneAnnotation, VerticalLineAnnotation
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
ChartAnnotation(AnnotationKind, string?)
protected ChartAnnotation(AnnotationKind kind, string? label = null)
Parameters
kind
AnnotationKind
label
string?
Properties
Color
Gets or sets the primary color for the annotation (line, callout border, etc.).
public ChartColor? Color { get; init; }
Property Value
Kind
Gets the annotation kind.
public AnnotationKind Kind { get; }
Property Value
Label
Gets an optional label rendered alongside the annotation.
public string? Label { get; init; }
Property Value
TargetPaneId
Gets or sets the pane identifier this annotation targets. When null, the annotation applies to all panes.
public string? TargetPaneId { get; init; }