ChartLineElement

StockSharp.Xaml.Charting

The chart element representing a line.

Inherits: ChartElement<ChartLineElement>

Implements: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IPersistable, IChartLineElement

Constructors

ChartLineElement
public ChartLineElement()
chartLineElement = ChartLineElement()

Initializes a new instance of the ChartLineElement.

Properties

AdditionalColor
public Color AdditionalColor { get; set; }
value = chartLineElement.AdditionalColor
chartLineElement.AdditionalColor = value

Additional line color (candles, etc.), with which it will be drawn on the chart.

AntiAliasing
public bool AntiAliasing { get; set; }
value = chartLineElement.AntiAliasing
chartLineElement.AntiAliasing = value

The anti aliasing of the line drawing. The default is enabled.

Color
public Color Color { get; set; }
value = chartLineElement.Color
chartLineElement.Color = value

Line color (candles, etc.), with which it will be drawn on chart.

DrawTemplate
public ControlTemplate DrawTemplate { get; set; }
value = chartLineElement.DrawTemplate
chartLineElement.DrawTemplate = value

The chart template for the Dot style DrawStyles.

ShowAxisMarker
public bool ShowAxisMarker { get; set; }
value = chartLineElement.ShowAxisMarker
chartLineElement.ShowAxisMarker = value

Show Y-axis marker.

StrokeThickness
public int StrokeThickness { get; set; }
value = chartLineElement.StrokeThickness
chartLineElement.StrokeThickness = value

The thickness of the line (bar, etc.) with which it will be drawn on the chart. The default is 1.

Style
public DrawStyles Style { get; set; }
value = chartLineElement.Style
chartLineElement.Style = value

The line drawing style. The default is Line.

Methods

CheckAxesCompatible
public override bool CheckAxesCompatible(ChartAxisType? xType, ChartAxisType? yType)
result = chartLineElement.CheckAxesCompatible(xType, yType)

Check if the element can be drawn using supplied axis types.

xType
X axis type.
yType
Y axis type.

Returns: if supplied types are supported.

Load
public override void Load(SettingsStorage storage)
chartLineElement.Load(storage)

Load settings.

storage
Settings storage.
OnDraw
protected override bool OnDraw(ChartDrawData data)
result = chartLineElement.OnDraw(data)

Draw on root element.

data
Chart drawing data.

Returns: if the data was successfully drawn, otherwise, returns .

Save
public override void Save(SettingsStorage storage)
chartLineElement.Save(storage)

Save settings.

storage
Settings storage.