Skip to main content

Trendline Class

Definition​

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

Represents a trendline that can be added to a Cartesian series.

public class Trendline

Inheritance: object -> AvaloniaObject -> Trendline

Constructors​

NameDescription
TrendlineNo summary available.

Trendline Constructor​

public Trendline()

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
BackwardForecastGets or sets the backward forecasting value.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ForwardForecastGets or sets the forward forecasting value.
IsVisibleGets or sets the visibility of the trendline.
ItemInherited from AvaloniaObject.
PeriodGets or sets the moving average period.
PolynomialOrderGets or sets the polynomial order.
StrokeGets or sets the stroke brush of the trendline.
StrokeDashStyleGets or sets the dash style of the trendline.
StrokeLineCapGets or sets the stroke line cap of the trendline.
StrokeLineJoinGets or sets the stroke line join of the trendline.
StrokeThicknessGets or sets the stroke thickness of the trendline.
TypeGets or sets the type of the trendline.

BackwardForecast Property​

Gets or sets the backward forecasting value.

public double BackwardForecast { get; set; }

ForwardForecast Property​

Gets or sets the forward forecasting value.

public double ForwardForecast { get; set; }

IsVisible Property​

Gets or sets the visibility of the trendline.

public bool IsVisible { get; set; }

Period Property​

Gets or sets the moving average period.

public int Period { get; set; }

PolynomialOrder Property​

Gets or sets the polynomial order.

public int PolynomialOrder { get; set; }

Stroke Property​

Gets or sets the stroke brush of the trendline.

public Avalonia.Media.IBrush Stroke { get; set; }

StrokeDashStyle Property​

Gets or sets the dash style of the trendline.

public Avalonia.Media.DashStyle StrokeDashStyle { get; set; }

StrokeLineCap Property​

Gets or sets the stroke line cap of the trendline.

public Avalonia.Media.PenLineCap StrokeLineCap { get; set; }

StrokeLineJoin Property​

Gets or sets the stroke line join of the trendline.

public Avalonia.Media.PenLineJoin StrokeLineJoin { get; set; }

StrokeThickness Property​

Gets or sets the stroke thickness of the trendline.

public double StrokeThickness { get; set; }

Type Property​

Gets or sets the type of the trendline.

public Avalonia.Controls.Charts.TrendlineType Type { get; set; }

Fields​

BackwardForecastProperty Field​

Identifies the Avalonia.Controls.Charts.Trendline.BackwardForecast Avalonia property.

public Avalonia.StyledProperty<double> BackwardForecastProperty

ForwardForecastProperty Field​

Identifies the Avalonia.Controls.Charts.Trendline.ForwardForecast Avalonia property.

public Avalonia.StyledProperty<double> ForwardForecastProperty

IsVisibleProperty Field​

Identifies the Avalonia.Controls.Charts.Trendline.IsVisible Avalonia property.

public Avalonia.StyledProperty<bool> IsVisibleProperty

PeriodProperty Field​

Identifies the Avalonia.Controls.Charts.Trendline.Period Avalonia property.

public Avalonia.StyledProperty<int> PeriodProperty

PolynomialOrderProperty Field​

Identifies the Avalonia.Controls.Charts.Trendline.PolynomialOrder Avalonia property.

public Avalonia.StyledProperty<int> PolynomialOrderProperty

StrokeDashStyleProperty Field​

Identifies the Avalonia.Controls.Charts.Trendline.StrokeDashStyle Avalonia property.

public Avalonia.StyledProperty<Avalonia.Media.DashStyle> StrokeDashStyleProperty

StrokeLineCapProperty Field​

Identifies the Avalonia.Controls.Charts.Trendline.StrokeLineCap Avalonia property.

public Avalonia.StyledProperty<Avalonia.Media.PenLineCap> StrokeLineCapProperty

StrokeLineJoinProperty Field​

Identifies the Avalonia.Controls.Charts.Trendline.StrokeLineJoin Avalonia property.

public Avalonia.StyledProperty<Avalonia.Media.PenLineJoin> StrokeLineJoinProperty

StrokeProperty Field​

Identifies the Avalonia.Controls.Charts.Trendline.Stroke Avalonia property.

public Avalonia.StyledProperty<Avalonia.Media.IBrush> StrokeProperty

StrokeThicknessProperty Field​

Identifies the Avalonia.Controls.Charts.Trendline.StrokeThickness Avalonia property.

public Avalonia.StyledProperty<double> StrokeThicknessProperty

TypeProperty Field​

Identifies the Avalonia.Controls.Charts.Trendline.Type Avalonia property.

public Avalonia.StyledProperty<Avalonia.Controls.Charts.TrendlineType> TypeProperty

Events​

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