ChartLineElement
The chart element representing a line.
Inherits: ChartElement<ChartLineElement>
Implements: IUltrachartPrimitive, IChartElementEx, IChartElement, IChartPart<IChartElement>, INotifyPropertyChanging, INotifyPropertyChanged, IPersistable, IChartLineElement
Constructors
public ChartLineElement()
chartLineElement = ChartLineElement()
Initializes a new instance of the ChartLineElement.
Properties
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.
public bool AntiAliasing { get; set; }
value = chartLineElement.AntiAliasing
chartLineElement.AntiAliasing = value
The anti aliasing of the line drawing. The default is enabled.
public Color Color { get; set; }
value = chartLineElement.Color
chartLineElement.Color = value
Line color (candles, etc.), with which it will be drawn on chart.
public ControlTemplate DrawTemplate { get; set; }
value = chartLineElement.DrawTemplate
chartLineElement.DrawTemplate = value
The chart template for the Dot style DrawStyles.
public bool ShowAxisMarker { get; set; }
value = chartLineElement.ShowAxisMarker
chartLineElement.ShowAxisMarker = value
Show Y-axis marker.
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.
public DrawStyles Style { get; set; }
value = chartLineElement.Style
chartLineElement.Style = value
The line drawing style. The default is Line.
Methods
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.
public override void Load(SettingsStorage storage)
chartLineElement.Load(storage)
Load settings.
- storage
- Settings storage.
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 .
public override void Save(SettingsStorage storage)
chartLineElement.Save(storage)
Save settings.
- storage
- Settings storage.