Skip to content

ConstantLine class

Represents a straight line drawn across the drawing area at a fixed value of the axis it belongs to.

Namespace: Eremex.AvaloniaUI.Charts
Assembly: Eremex.Avalonia.Charts.dll
NuGet Package: Eremex.Avalonia.Controls

Declaration

public class ConstantLine : ChartElement

Public Members

name description
ConstantLine() The default constructor.
AxisValue { get; set; } Gets or sets the axis value at which the line is drawn.
Color { get; set; } Gets or sets the color of the line.
LineStyle { get; set; } Gets or sets the style of the line. If the value is null, a default line style is used.
ShowBehind { get; set; } Gets or sets whether the line is drawn under the series. Set the property to false to draw the line over the series.
ShowTitle { get; set; } Gets or sets whether the line title is displayed.
Title { get; set; } Gets or sets the text displayed next to the line.
TitleIndent { get; set; } Gets or sets the indentation between the line and its title.
TitlePosition { get; set; } Gets or sets where the line title is placed relative to the line.

See Also

Used in articles