Skip to main content

ArrowLineAnnotation Class

Definition

Assembly:Avalonia.Controls.Charts
Package:Avalonia.Controls.Charts

A line annotation with optional arrow heads at either end.

public class ArrowLineAnnotation

Inheritance: object -> AvaloniaObject -> ChartAnnotation -> ArrowLineAnnotation

Constructors

NameDescription
ArrowLineAnnotationNo summary available.

ArrowLineAnnotation Constructor

public ArrowLineAnnotation()

Methods

NameDescription
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

Properties

NameDescription
ArrowSizeGets or sets the arrow head size.
LabelGets or sets the label text.
ShowEndArrowGets or sets whether to show an arrow at the end.
ShowStartArrowGets or sets whether to show an arrow at the start.
X1Gets or sets the start X axis value.
X2Gets or sets the end X axis value.
Y1Gets or sets the start Y axis value.
Y2Gets or sets the end Y axis value.
FontSizeGets or sets the font size used for annotation text or labels. Inherited from ChartAnnotation.
ForegroundGets or sets the brush used for annotation text or labels. When unset, text-capable annotations fall back to their local defaults or to Avalonia.Controls.Charts.ChartAnnotation.Stroke where appropriate. Inherited from ChartAnnotation.
IsBandAnnotationGets whether this annotation is a band annotation. Used by the rendering pipeline to distinguish bands from line/text annotations without requiring a cross-assembly type check. Inherited from ChartAnnotation.
IsVisibleGets or sets whether this annotation is visible. Inherited from ChartAnnotation.
OpacityGets or sets the opacity applied to the entire annotation. Inherited from ChartAnnotation.
StrokeGets or sets the stroke brush for annotation geometry. Text-based annotations can also use this as an outline brush. Inherited from ChartAnnotation.
StrokeThicknessGets or sets the stroke thickness for annotation geometry or text outlines. Inherited from ChartAnnotation.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited from AvaloniaObject.

ArrowSize Property

Gets or sets the arrow head size.

public double ArrowSize { get; set; }

Label Property

Gets or sets the label text.

public string Label { get; set; }

ShowEndArrow Property

Gets or sets whether to show an arrow at the end.

public bool ShowEndArrow { get; set; }

ShowStartArrow Property

Gets or sets whether to show an arrow at the start.

public bool ShowStartArrow { get; set; }

X1 Property

Gets or sets the start X axis value.

public double X1 { get; set; }

X2 Property

Gets or sets the end X axis value.

public double X2 { get; set; }

Y1 Property

Gets or sets the start Y axis value.

public double Y1 { get; set; }

Y2 Property

Gets or sets the end Y axis value.

public double Y2 { get; set; }

Fields

NameDescription
ArrowSizePropertyIdentifies the Avalonia.Controls.Charts.ArrowLineAnnotation.ArrowSize Avalonia property.
LabelPropertyIdentifies the Avalonia.Controls.Charts.ArrowLineAnnotation.Label Avalonia property.
ShowEndArrowPropertyIdentifies the Avalonia.Controls.Charts.ArrowLineAnnotation.ShowEndArrow Avalonia property.
ShowStartArrowPropertyIdentifies the Avalonia.Controls.Charts.ArrowLineAnnotation.ShowStartArrow Avalonia property.
X1PropertyIdentifies the Avalonia.Controls.Charts.ArrowLineAnnotation.X1 Avalonia property.
X2PropertyIdentifies the Avalonia.Controls.Charts.ArrowLineAnnotation.X2 Avalonia property.
Y1PropertyIdentifies the Avalonia.Controls.Charts.ArrowLineAnnotation.Y1 Avalonia property.
Y2PropertyIdentifies the Avalonia.Controls.Charts.ArrowLineAnnotation.Y2 Avalonia property.
FontSizePropertyIdentifies the Avalonia.Controls.Charts.ChartAnnotation.FontSize Avalonia property. Inherited from ChartAnnotation.
ForegroundPropertyIdentifies the Avalonia.Controls.Charts.ChartAnnotation.Foreground Avalonia property. Inherited from ChartAnnotation.
IsVisiblePropertyIdentifies the Avalonia.Controls.Charts.ChartAnnotation.IsVisible Avalonia property. Inherited from ChartAnnotation.
OpacityPropertyIdentifies the Avalonia.Controls.Charts.ChartAnnotation.Opacity Avalonia property. Inherited from ChartAnnotation.
StrokePropertyIdentifies the Avalonia.Controls.Charts.ChartAnnotation.Stroke Avalonia property. Inherited from ChartAnnotation.
StrokeThicknessPropertyIdentifies the Avalonia.Controls.Charts.ChartAnnotation.StrokeThickness Avalonia property. Inherited from ChartAnnotation.

ArrowSizeProperty Field

Identifies the Avalonia.Controls.Charts.ArrowLineAnnotation.ArrowSize Avalonia property.

public Avalonia.StyledProperty<double> ArrowSizeProperty

LabelProperty Field

Identifies the Avalonia.Controls.Charts.ArrowLineAnnotation.Label Avalonia property.

public Avalonia.StyledProperty<string> LabelProperty

ShowEndArrowProperty Field

Identifies the Avalonia.Controls.Charts.ArrowLineAnnotation.ShowEndArrow Avalonia property.

public Avalonia.StyledProperty<bool> ShowEndArrowProperty

ShowStartArrowProperty Field

Identifies the Avalonia.Controls.Charts.ArrowLineAnnotation.ShowStartArrow Avalonia property.

public Avalonia.StyledProperty<bool> ShowStartArrowProperty

X1Property Field

Identifies the Avalonia.Controls.Charts.ArrowLineAnnotation.X1 Avalonia property.

public Avalonia.StyledProperty<double> X1Property

X2Property Field

Identifies the Avalonia.Controls.Charts.ArrowLineAnnotation.X2 Avalonia property.

public Avalonia.StyledProperty<double> X2Property

Y1Property Field

Identifies the Avalonia.Controls.Charts.ArrowLineAnnotation.Y1 Avalonia property.

public Avalonia.StyledProperty<double> Y1Property

Y2Property Field

Identifies the Avalonia.Controls.Charts.ArrowLineAnnotation.Y2 Avalonia property.

public Avalonia.StyledProperty<double> Y2Property

Events

NameDescription
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.