# 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`](./index.md)  
**Assembly:** `Eremex.Avalonia.Charts.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls](https://www.nuget.org/packages/Eremex.Avalonia.Controls)

## Declaration

```csharp
public class ConstantLine : ChartElement
```

## Public Members

| name | description |
| --- | --- |
| [ConstantLine](ConstantLine/ConstantLine.md)() | The default constructor. |
| [AxisValue](ConstantLine/AxisValue.md) { get; set; } | Gets or sets the axis value at which the line is drawn. |
| [Color](ConstantLine/Color.md) { get; set; } | Gets or sets the color of the line. |
| [LineStyle](ConstantLine/LineStyle.md) { get; set; } | Gets or sets the style of the line. If the value is null, a default line style is used. |
| [ShowBehind](ConstantLine/ShowBehind.md) { 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](ConstantLine/ShowTitle.md) { get; set; } | Gets or sets whether the line title is displayed. |
| [Title](ConstantLine/Title.md) { get; set; } | Gets or sets the text displayed next to the line. |
| [TitleIndent](ConstantLine/TitleIndent.md) { get; set; } | Gets or sets the indentation between the line and its title. |
| [TitlePosition](ConstantLine/TitlePosition.md) { get; set; } | Gets or sets where the line title is placed relative to the line. |

## See Also

* class [ChartElement](./ChartElement.md)
* namespace [Eremex.AvaloniaUI.Charts](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
